Class HotRodTypesUtils


  • public class HotRodTypesUtils
    extends Object
    • Constructor Detail

      • HotRodTypesUtils

        public HotRodTypesUtils()
    • Method Detail

      • migrateMapToSet

        public static <MapKey,​MapValue,​SetValue> Set<SetValue> migrateMapToSet​(Map<MapKey,​MapValue> map,
                                                                                           Function<Map.Entry<MapKey,​MapValue>,​SetValue> creator)
      • migrateSetToMap

        public static <MapKey,​MapValue,​SetValue> Map<MapKey,​MapValue> migrateSetToMap​(Set<SetValue> set,
                                                                                                        Function<SetValue,​MapKey> keyProducer,
                                                                                                        Function<SetValue,​MapValue> valueProducer)
      • createHotRodPairFromMapEntry

        public static <T,​V> HotRodPair<T,​V> createHotRodPairFromMapEntry​(Map.Entry<T,​V> entry)
      • removeFromSetByMapKey

        public static <SetType,​KeyType> boolean removeFromSetByMapKey​(Set<SetType> set,
                                                                            KeyType key,
                                                                            Function<SetType,​KeyType> keyGetter)
      • getMapValueFromSet

        public static <SetType,​MapKey,​MapValue> MapValue getMapValueFromSet​(Set<SetType> set,
                                                                                        MapKey key,
                                                                                        Function<SetType,​MapKey> keyGetter,
                                                                                        Function<SetType,​MapValue> valueGetter)
      • getKey

        public static <K,​V> K getKey​(HotRodPair<K,​V> hotRodPair)
      • getValue

        public static <K,​V> V getValue​(HotRodPair<K,​V> hotRodPair)