Class Compat
java.lang.Object
xyz.janboerman.scalaloader.compat.Compat
This class is NOT part of the public API!
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List
<T> static <K,
V> Map <K, V> emptyMap()
static <T> Set
<T> emptySet()
static String
getPackageName
(Class<?> clazz) static JarFile
static <T> List
<T> listCopy
(Collection<T> coll) static <T> List
<T> listOf
(T... items) static <K,
V> Map <K, V> static <K,
V> Map.Entry <K, V> mapEntry
(K key, V value) static <K,
V> Map <K, V> static byte[]
readAllBytes
(InputStream inputStream) static <T> Set
<T> setCopy
(Collection<T> coll) static <T> Set
<T> setOf
(T... items) static <T> List
<T> singletonList
(T item) static <K,
V> Map <K, V> singletonMap
(K key, V value) static <T> Set
<T> singletonSet
(T item) static String
stringRepeat
(String base, int repeat)
-
Method Details
-
readAllBytes
- Throws:
IOException
-
listCopy
-
listOf
-
singletonList
-
emptyList
-
setCopy
-
setOf
-
singletonSet
-
emptySet
-
emptyMap
-
mapCopy
-
singletonMap
-
mapOf
-
mapEntry
-
stringRepeat
-
jarFile
- Throws:
IOException
-
getPackageName
-