Class HotRodTypesUtils
- java.lang.Object
-
- org.keycloak.models.map.storage.hotRod.common.HotRodTypesUtils
-
public class HotRodTypesUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HotRodTypesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HotRodAttributeEntitycreateHotRodAttributeEntityFromMapEntry(Map.Entry<String,List<String>> entry)static <T,V>
HotRodPair<T,V>createHotRodPairFromMapEntry(Map.Entry<T,V> entry)static StringgetKey(AbstractEntity entity)static StringgetKey(HotRodAttributeEntity attributeEntity)static <K,V>
KgetKey(HotRodPair<K,V> hotRodPair)static <SetType,MapKey,MapValue>
MapValuegetMapValueFromSet(Set<SetType> set, MapKey key, Function<SetType,MapKey> keyGetter, Function<SetType,MapValue> valueGetter)static List<String>getValue(HotRodAttributeEntity attributeEntity)static <K,V>
VgetValue(HotRodPair<K,V> hotRodPair)static <MapKey,MapValue,SetValue>
Set<SetValue>migrateMapToSet(Map<MapKey,MapValue> map, Function<Map.Entry<MapKey,MapValue>,SetValue> creator)static <MapKey,MapValue,SetValue>
Map<MapKey,MapValue>migrateSetToMap(Set<SetValue> set, Function<SetValue,MapKey> keyProducer, Function<SetValue,MapValue> valueProducer)static <SetType,KeyType>
booleanremoveFromSetByMapKey(Set<SetType> set, KeyType key, Function<SetType,KeyType> keyGetter)
-
-
-
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)
-
createHotRodAttributeEntityFromMapEntry
public static HotRodAttributeEntity createHotRodAttributeEntityFromMapEntry(Map.Entry<String,List<String>> 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)
-
getKey
public static String getKey(HotRodAttributeEntity attributeEntity)
-
getValue
public static List<String> getValue(HotRodAttributeEntity attributeEntity)
-
getKey
public static String getKey(AbstractEntity entity)
-
-