Class Compat

java.lang.Object
xyz.janboerman.scalaloader.compat.Compat

public class Compat extends Object
This class is NOT part of the public API!
  • Method Details

    • readAllBytes

      public static byte[] readAllBytes(InputStream inputStream) throws IOException
      Throws:
      IOException
    • listCopy

      public static <T> List<T> listCopy(Collection<T> coll)
    • listOf

      @SafeVarargs public static <T> List<T> listOf(T... items)
    • singletonList

      public static <T> List<T> singletonList(T item)
    • emptyList

      public static <T> List<T> emptyList()
    • setCopy

      public static <T> Set<T> setCopy(Collection<T> coll)
    • setOf

      @SafeVarargs public static <T> Set<T> setOf(T... items)
    • singletonSet

      public static <T> Set<T> singletonSet(T item)
    • emptySet

      public static <T> Set<T> emptySet()
    • emptyMap

      public static <K, V> Map<K,V> emptyMap()
    • mapCopy

      public static <K, V> Map<K,V> mapCopy(Map<K,V> map)
    • singletonMap

      public static <K, V> Map<K,V> singletonMap(K key, V value)
    • mapOf

      @SafeVarargs public static <K, V> Map<K,V> mapOf(Map.Entry<K,V>... entries)
    • mapEntry

      public static <K, V> Map.Entry<K,V> mapEntry(K key, V value)
    • stringRepeat

      public static String stringRepeat(String base, int repeat)
    • jarFile

      public static JarFile jarFile(File jarFile) throws IOException
      Throws:
      IOException
    • getPackageName

      public static String getPackageName(Class<?> clazz)