-
- All Implemented Interfaces:
public final class DataKt
-
-
Method Summary
Modifier and Type Method Description final static Map<?, ?>merge(Map<?, ?> mapA, Map<?, ?> mapB)TODO. final static Map<?, ?>merge(Collection<Map<?, ?>> maps)TODO. final static <Z extends Any> Collection<Z>ensureSize(Collection<Z> $self, IntRange count)TODO. final static <T extends Any> Tkeys(Map<?, ?> $self, Object keys)TODO. final static <T extends Any> Tinvoke(Map<?, ?> $self, Object keys)TODO. final static <T extends Any> TrequireKeys(Map<?, ?> $self, Object name)TODO. final static <K extends Any, V extends Any> Collection<Pair<K, V>>pairs(Map<K, Collection<V>> $self)TODO. final static <T extends Any> Map<String, ?>fieldsMapOf(Pair<KProperty1<T, ?>, ?> fields)TODO. final static <T extends Any> Map<String, ?>fieldsMapOfNotNull(Pair<KProperty1<T, ?>, ?> fields)TODO. final static <K extends Any> Map<K, ?>mapOfNotNull(Pair<K, ?> pairs)TODO. final static <K extends Any, V extends Any> Vrequire(Map<K, V> $self, K name)TODO. final static <K extends Any, V extends Any> Map<K, V>filterNotEmpty(Map<K, V> $self)TODO. final static <V extends Any> Collection<V>filterNotEmpty(Collection<V> $self)TODO. final static Map<?, ?>filterNotEmptyRecursive(Map<?, ?> $self)TODO. final static Collection<?>filterNotEmptyRecursive(Collection<?> $self)TODO. final static <V extends Any> BooleannotEmpty(V value)TODO. final static <T extends Any> TgetKey(Map<?, ?> $self, KProperty1<?, ?> key)final static IntegergetInt(Map<?, ?> $self, KProperty1<?, ?> key)final static LonggetLong(Map<?, ?> $self, KProperty1<?, ?> key)final static FloatgetFloat(Map<?, ?> $self, KProperty1<?, ?> key)final static DoublegetDouble(Map<?, ?> $self, KProperty1<?, ?> key)final static BooleangetBoolean(Map<?, ?> $self, KProperty1<?, ?> key)final static StringgetString(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<?>getList(Map<?, ?> $self, KProperty1<?, ?> key)final static Map<String, ?>getMap(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Integer>getInts(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Long>getLongs(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Float>getFloats(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Double>getDoubles(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Boolean>getBooleans(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<String>getStrings(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<List<?>>getLists(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Map<String, ?>>getMaps(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<?>getListOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Map<String, ?>getMapOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Integer>getIntsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Long>getLongsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Float>getFloatsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Double>getDoublesOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Boolean>getBooleansOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<String>getStringsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Collection<?>>getListsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Map<String, ?>>getMapsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)final static <T extends Any> TrequireKey(Map<?, ?> $self, KProperty1<?, ?> key)final static IntegerrequireInt(Map<?, ?> $self, KProperty1<?, ?> key)final static LongrequireLong(Map<?, ?> $self, KProperty1<?, ?> key)final static FloatrequireFloat(Map<?, ?> $self, KProperty1<?, ?> key)final static DoublerequireDouble(Map<?, ?> $self, KProperty1<?, ?> key)final static BooleanrequireBoolean(Map<?, ?> $self, KProperty1<?, ?> key)final static StringrequireString(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<?>requireList(Map<?, ?> $self, KProperty1<?, ?> key)final static Map<String, ?>requireMap(Map<?, ?> $self, KProperty1<?, ?> key)final static List<Integer>requireInts(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Long>requireLongs(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Float>requireFloats(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Double>requireDoubles(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Boolean>requireBooleans(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<String>requireStrings(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Collection<?>>requireLists(Map<?, ?> $self, KProperty1<?, ?> key)final static Collection<Map<String, ?>>requireMaps(Map<?, ?> $self, KProperty1<?, ?> key)-
-
Method Detail
-
merge
final static Map<?, ?> merge(Map<?, ?> mapA, Map<?, ?> mapB)
- Parameters:
mapA- .mapB- .
-
ensureSize
final static <Z extends Any> Collection<Z> ensureSize(Collection<Z> $self, IntRange count)
TODO.
- Parameters:
count- .
-
invoke
final static <T extends Any> T invoke(Map<?, ?> $self, Object keys)
TODO.
- Parameters:
keys- .
-
requireKeys
final static <T extends Any> T requireKeys(Map<?, ?> $self, Object name)
TODO.
- Parameters:
name- .
-
pairs
final static <K extends Any, V extends Any> Collection<Pair<K, V>> pairs(Map<K, Collection<V>> $self)
TODO.
-
fieldsMapOf
final static <T extends Any> Map<String, ?> fieldsMapOf(Pair<KProperty1<T, ?>, ?> fields)
TODO.
- Parameters:
fields- .
-
fieldsMapOfNotNull
final static <T extends Any> Map<String, ?> fieldsMapOfNotNull(Pair<KProperty1<T, ?>, ?> fields)
TODO.
- Parameters:
fields- .
-
mapOfNotNull
final static <K extends Any> Map<K, ?> mapOfNotNull(Pair<K, ?> pairs)
TODO.
- Parameters:
pairs- .
-
require
final static <K extends Any, V extends Any> V require(Map<K, V> $self, K name)
TODO.
- Parameters:
name- .
-
filterNotEmpty
final static <K extends Any, V extends Any> Map<K, V> filterNotEmpty(Map<K, V> $self)
TODO.
-
filterNotEmpty
final static <V extends Any> Collection<V> filterNotEmpty(Collection<V> $self)
TODO.
-
filterNotEmptyRecursive
final static Map<?, ?> filterNotEmptyRecursive(Map<?, ?> $self)
TODO.
-
filterNotEmptyRecursive
final static Collection<?> filterNotEmptyRecursive(Collection<?> $self)
TODO.
-
getKey
final static <T extends Any> T getKey(Map<?, ?> $self, KProperty1<?, ?> key)
-
getInt
final static Integer getInt(Map<?, ?> $self, KProperty1<?, ?> key)
-
getLong
final static Long getLong(Map<?, ?> $self, KProperty1<?, ?> key)
-
getFloat
final static Float getFloat(Map<?, ?> $self, KProperty1<?, ?> key)
-
getDouble
final static Double getDouble(Map<?, ?> $self, KProperty1<?, ?> key)
-
getBoolean
final static Boolean getBoolean(Map<?, ?> $self, KProperty1<?, ?> key)
-
getString
final static String getString(Map<?, ?> $self, KProperty1<?, ?> key)
-
getList
final static Collection<?> getList(Map<?, ?> $self, KProperty1<?, ?> key)
-
getMap
final static Map<String, ?> getMap(Map<?, ?> $self, KProperty1<?, ?> key)
-
getInts
final static Collection<Integer> getInts(Map<?, ?> $self, KProperty1<?, ?> key)
-
getLongs
final static Collection<Long> getLongs(Map<?, ?> $self, KProperty1<?, ?> key)
-
getFloats
final static Collection<Float> getFloats(Map<?, ?> $self, KProperty1<?, ?> key)
-
getDoubles
final static Collection<Double> getDoubles(Map<?, ?> $self, KProperty1<?, ?> key)
-
getBooleans
final static Collection<Boolean> getBooleans(Map<?, ?> $self, KProperty1<?, ?> key)
-
getStrings
final static Collection<String> getStrings(Map<?, ?> $self, KProperty1<?, ?> key)
-
getLists
final static Collection<List<?>> getLists(Map<?, ?> $self, KProperty1<?, ?> key)
-
getMaps
final static Collection<Map<String, ?>> getMaps(Map<?, ?> $self, KProperty1<?, ?> key)
-
getListOrEmpty
final static Collection<?> getListOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getMapOrEmpty
final static Map<String, ?> getMapOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getIntsOrEmpty
final static Collection<Integer> getIntsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getLongsOrEmpty
final static Collection<Long> getLongsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getFloatsOrEmpty
final static Collection<Float> getFloatsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getDoublesOrEmpty
final static Collection<Double> getDoublesOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getBooleansOrEmpty
final static Collection<Boolean> getBooleansOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getStringsOrEmpty
final static Collection<String> getStringsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getListsOrEmpty
final static Collection<Collection<?>> getListsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
getMapsOrEmpty
final static Collection<Map<String, ?>> getMapsOrEmpty(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireKey
final static <T extends Any> T requireKey(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireInt
final static Integer requireInt(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireLong
final static Long requireLong(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireFloat
final static Float requireFloat(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireDouble
final static Double requireDouble(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireBoolean
final static Boolean requireBoolean(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireString
final static String requireString(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireList
final static Collection<?> requireList(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireMap
final static Map<String, ?> requireMap(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireInts
final static List<Integer> requireInts(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireLongs
final static Collection<Long> requireLongs(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireFloats
final static Collection<Float> requireFloats(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireDoubles
final static Collection<Double> requireDoubles(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireBooleans
final static Collection<Boolean> requireBooleans(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireStrings
final static Collection<String> requireStrings(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireLists
final static Collection<Collection<?>> requireLists(Map<?, ?> $self, KProperty1<?, ?> key)
-
requireMaps
final static Collection<Map<String, ?>> requireMaps(Map<?, ?> $self, KProperty1<?, ?> key)
-
-
-
-