UFMapOfSet can be used to store groups of unique values. It uses a Map that maps a value to a Set. The class takes care of managing the sets.
Map
Set
Gets the number of key entries.
Gets the total number of value entries.
Adds a value to the group for a key. If the value is already available in the group, nothing changes.
Key to add for
Value to add to the group of aKey
Clears the map and removes all keys and related sets.
Tries to the first key the value has been stored for.
Value to find key
the key or null if no key could be found.
Gets all values stored for a certain key.
Key to get values for
all values for the key or an empty array if the key does not exist.
Gets all keys stored.
all stored keys.
Checks if the map has a certain key.
Key to check
true if the map contains the key.
Checks if the instance has a certain value for a certain key.
Value to check
true if the map contains the key and value.
Checks if the map contains any sets.
true if there are no sets.
Removes a value from the group for a key.
Key to remove for
Value to remove from the group of aKey
Searches for a key that contains the value and remove it.
Value to remove
UFMapOfSet can be used to store groups of unique values. It uses a
Map
that maps a value to aSet
. The class takes care of managing the sets.