K
- public static class AlignmentTools.IdentityMap<K> extends AbstractMap<K,K>
The class is a bit inconsistent when representing its contents. On the one hand, containsKey(key) is true for all objects. However, attempting to iterate through the values returns an empty set.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
IdentityMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<K,K>> |
entrySet()
Always returns the empty set
|
K |
get(Object key) |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public IdentityMap()
public K get(Object key)
get
in interface Map<K,K>
get
in class AbstractMap<K,K>
key
- ClassCastException
- if key is not of type Kpublic boolean containsKey(Object key)
containsKey
in interface Map<K,K>
containsKey
in class AbstractMap<K,K>
Copyright © 2000–2018 BioJava. All rights reserved.