Constructor and Description |
---|
VisitorMap(Map<N,V> innerMap,
GenericVisitor<Integer,Void> hashcodeVisitor,
GenericVisitor<Boolean,Visitable> equalsVisitor)
Wrap a map and use different visitors for equals and hashcode.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<N,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<N> |
keySet() |
V |
put(N key,
V value) |
void |
putAll(Map<? extends N,? extends V> m) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public VisitorMap(Map<N,V> innerMap, GenericVisitor<Integer,Void> hashcodeVisitor, GenericVisitor<Boolean,Visitable> equalsVisitor)
public boolean containsKey(Object key)
containsKey
in interface Map<N extends Node,V>
public boolean containsValue(Object value)
containsValue
in interface Map<N extends Node,V>
Copyright © 2007–2017. All rights reserved.