private static final class BinaryGraphPrinter.ConstantPool extends LinkedHashMap<Object,Character>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
private LinkedList<Character> |
availableIds |
private char |
nextId |
private static long |
serialVersionUID |
Constructor and Description |
---|
ConstantPool() |
Modifier and Type | Method and Description |
---|---|
char |
add(Object obj) |
private Character |
nextAvailableId() |
protected boolean |
removeEldestEntry(Map.Entry<Object,Character> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
private final LinkedList<Character> availableIds
private char nextId
private static final long serialVersionUID
public ConstantPool()
protected boolean removeEldestEntry(Map.Entry<Object,Character> eldest)
removeEldestEntry
in class LinkedHashMap<Object,Character>
private Character nextAvailableId()