Package 

Class DataKt

  • All Implemented Interfaces:

    
    public final class DataKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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> T keys(Map<?, ?> $self, Object keys) TODO.
      final static <T extends Any> T invoke(Map<?, ?> $self, Object keys) TODO.
      final static <T extends Any> T requireKeys(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> V require(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> Boolean notEmpty(V value) TODO.
      final static <T extends Any> T getKey(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Integer getInt(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Long getLong(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Float getFloat(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Double getDouble(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Boolean getBoolean(Map<?, ?> $self, KProperty1<?, ?> key)
      final static String getString(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> T requireKey(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Integer requireInt(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Long requireLong(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Float requireFloat(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Double requireDouble(Map<?, ?> $self, KProperty1<?, ?> key)
      final static Boolean requireBoolean(Map<?, ?> $self, KProperty1<?, ?> key)
      final static String requireString(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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • merge

         final static Map<?, ?> merge(Map<?, ?> mapA, Map<?, ?> mapB)

        TODO.

        Mermaid test:

        graph LR
          A --> B
        Parameters:
        mapA - .
        mapB - .
      • merge

         final static Map<?, ?> merge(Collection<Map<?, ?>> maps)
        Parameters:
        maps - .
      • ensureSize

         final static <Z extends Any> Collection<Z> ensureSize(Collection<Z> $self, IntRange count)
        Parameters:
        count - .
      • keys

         final static <T extends Any> T keys(Map<?, ?> $self, Object keys)
        Parameters:
        keys - .
      • invoke

         final static <T extends Any> T invoke(Map<?, ?> $self, Object keys)
        Parameters:
        keys - .
      • requireKeys

         final static <T extends Any> T requireKeys(Map<?, ?> $self, Object name)
        Parameters:
        name - .
      • pairs

         final static <K extends Any, V extends Any> Collection<Pair<K, V>> pairs(Map<K, Collection<V>> $self)
      • fieldsMapOf

         final static <T extends Any> Map<String, ?> fieldsMapOf(Pair<KProperty1<T, ?>, ?> fields)
        Parameters:
        fields - .
      • fieldsMapOfNotNull

         final static <T extends Any> Map<String, ?> fieldsMapOfNotNull(Pair<KProperty1<T, ?>, ?> fields)
        Parameters:
        fields - .
      • mapOfNotNull

         final static <K extends Any> Map<K, ?> mapOfNotNull(Pair<K, ?> pairs)
        Parameters:
        pairs - .
      • require

         final static <K extends Any, V extends Any> V require(Map<K, V> $self, K name)
        Parameters:
        name - .
      • filterNotEmpty

         final static <K extends Any, V extends Any> Map<K, V> filterNotEmpty(Map<K, V> $self)
      • filterNotEmpty

         final static <V extends Any> Collection<V> filterNotEmpty(Collection<V> $self)
      • notEmpty

         final static <V extends Any> Boolean notEmpty(V value)
        Parameters:
        value - .
      • 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)