public class HashMapWithPreImageAndOrderedValueSet<K,V> extends HashMap<K,V>
java.util.HashMap with ordered value set and extended with methods to obtain pre-images of (sets of) values.
Note that null values are not allowed in this implementation.
Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
HashMapWithPreImageAndOrderedValueSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
HashMapWithPreImageAndOrderedValueSet |
clone() |
V |
firstValue() |
Set<K> |
getPreImageForSet(Set<V> values) |
Set<K> |
getPreImageForValue(V value) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic HashMapWithPreImageAndOrderedValueSet()
public HashMapWithPreImageAndOrderedValueSet clone()
public void clear()
public V firstValue() throws NoSuchElementException
NoSuchElementExceptionCopyright © 2018. All rights reserved.