public class AMHashMap extends CaseInsensitiveHashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AMHashMap() |
AMHashMap(boolean forByteValues)
Creates a new AMHashMap
|
AMHashMap(HashMap map) |
AMHashMap(int initialCapacity) |
AMHashMap(int initialCapacity,
boolean forByteValues) |
Modifier and Type | Method and Description |
---|---|
void |
addEmptyValues(Set names)
Method which adds new entries to the map with empty set as values
|
void |
clear() |
protected void |
clearNegativeByteAttrs() |
void |
copy(Map map)
Copies the contents of the specified map to this map.
|
Set |
copyValuesOnly(Map map)
Copies the contents of the specified map to this map.
|
Map |
getCopy()
This method is to some what clone() behaviour.
|
Map |
getCopy(Set names)
This method is to some what clone() behaviour.
|
Set |
getMissingAndEmptyKeys(Set keys)
This compares all the elements of the specified and returns a Set which
contains all the keys missing in the map and also those keys whose values
are empty.
|
Set |
getMissingKeys(Set keys)
This compares all the elements of the specified and returns a Set which
contains all the keys missing in the map.
|
Set |
getNegativeByteAttrClone() |
boolean |
isByteValues()
Checks whether this map contains byte array or string values.
|
boolean |
isEmpty() |
void |
merge(Map map)
Merges all the values from the specified map to the current map.
|
void |
removeEmptyValues()
Removes all the empty values (empty sets) from the map.
|
void |
removeKeys(Set keys) |
protected void |
setNegativeByteAttr(Set n) |
containsKey, entrySet, get, keySet, put, putAll, remove
clone, compute, computeIfAbsent, computeIfPresent, containsValue, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public AMHashMap()
public AMHashMap(boolean forByteValues)
forByteValues
- if true then, this map is used for storing byte values. if
false, then used for storing String valuespublic AMHashMap(int initialCapacity)
public AMHashMap(int initialCapacity, boolean forByteValues)
public AMHashMap(HashMap map)
public boolean isEmpty()
protected void clearNegativeByteAttrs()
protected void setNegativeByteAttr(Set n)
public Set getNegativeByteAttrClone()
public Set getMissingKeys(Set keys)
keys
- the Set of keys that will be compared against the keys in this
map.public Set getMissingAndEmptyKeys(Set keys)
keys
- the Set of keys that will be compared against the keys in this
map.public void removeKeys(Set keys)
public void copy(Map map)
map
- the map that needs to be copiedpublic Set copyValuesOnly(Map map)
map
- the map that needs to be copiedpublic void merge(Map map)
map
- the map whose values need to merge and added to the current
map.NullPointerException
- if the map is null.public void addEmptyValues(Set names)
names
- new entries to be added to the mappublic void removeEmptyValues()
public Map getCopy()
public Map getCopy(Set names)
names
- the names of the attributes that need to be obtained from Mappublic boolean isByteValues()
byte[][]
otherwise false.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.