fm.liveswitch.HashMapExtensions Class Reference

Static Public Member Functions

static< K, V > int getCount (HashMap< K, V > map)
 
static< K, V > HashMap< K, V > getItem (HashMap< K, V > map)
 
static< K, V > java.util.Set< K > getKeys (HashMap< K, V > map)
 
static< K, V > java.util.Collection< V > getValues (HashMap< K, V > map)
 
static< K, V > V add (HashMap< K, V > map, K key, V value)
 
static< K, V > V set (HashMap< K, V > map, K key, V value)
 
static< K, V > boolean remove (HashMap< K, V > map, K key)
 
static< K, V > boolean tryGetValue (HashMap< K, V > map, K key, Holder< V > result)
 
static< K > boolean tryGetValue (HashMap< K, Boolean > map, K key, BooleanHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Byte > map, K key, ByteHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Character > map, K key, CharacterHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Double > map, K key, DoubleHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Float > map, K key, FloatHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Integer > map, K key, IntegerHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Long > map, K key, LongHolder result)
 
static< K > boolean tryGetValue (HashMap< K, Short > map, K key, ShortHolder result)
 
static< K, V > Enumeration< AbstractMap.SimpleEntry< K, V > > getEnumerator (final HashMap< K, V > map)
 
static< K, V > java.util.Set< K > getAllKeys (HashMap< K, V > map)
 

Member Function Documentation

◆ add()

static <K,V> V fm.liveswitch.HashMapExtensions.add ( HashMap< K, V >  map,
key,
value 
)
static

◆ getAllKeys()

static <K,V> java.util.Set<K> fm.liveswitch.HashMapExtensions.getAllKeys ( HashMap< K, V >  map)
static

◆ getCount()

static <K,V> int fm.liveswitch.HashMapExtensions.getCount ( HashMap< K, V >  map)
static

◆ getEnumerator()

static <K,V> Enumeration<AbstractMap.SimpleEntry<K,V> > fm.liveswitch.HashMapExtensions.getEnumerator ( final HashMap< K, V >  map)
static

◆ getItem()

static <K,V> HashMap<K,V> fm.liveswitch.HashMapExtensions.getItem ( HashMap< K, V >  map)
static

◆ getKeys()

static <K,V> java.util.Set<K> fm.liveswitch.HashMapExtensions.getKeys ( HashMap< K, V >  map)
static

◆ getValues()

static <K,V> java.util.Collection<V> fm.liveswitch.HashMapExtensions.getValues ( HashMap< K, V >  map)
static

◆ remove()

static <K,V> boolean fm.liveswitch.HashMapExtensions.remove ( HashMap< K, V >  map,
key 
)
static

◆ set()

static <K,V> V fm.liveswitch.HashMapExtensions.set ( HashMap< K, V >  map,
key,
value 
)
static

◆ tryGetValue() [1/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Boolean >  map,
key,
BooleanHolder  result 
)
static

◆ tryGetValue() [2/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Byte >  map,
key,
ByteHolder  result 
)
static

◆ tryGetValue() [3/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Character >  map,
key,
CharacterHolder  result 
)
static

◆ tryGetValue() [4/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Double >  map,
key,
DoubleHolder  result 
)
static

◆ tryGetValue() [5/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Float >  map,
key,
FloatHolder  result 
)
static

◆ tryGetValue() [6/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Integer >  map,
key,
IntegerHolder  result 
)
static

◆ tryGetValue() [7/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Long >  map,
key,
LongHolder  result 
)
static

◆ tryGetValue() [8/9]

static <K> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, Short >  map,
key,
ShortHolder  result 
)
static

◆ tryGetValue() [9/9]

static <K,V> boolean fm.liveswitch.HashMapExtensions.tryGetValue ( HashMap< K, V >  map,
key,
Holder< V >  result 
)
static