Serializable
, Cloneable
, Map<String,String>
public final class InternCache extends LinkedHashMap<String,String>
Note: that this class extends LinkedHashMap
is an implementation
detail -- no code should ever directly call Map methods.
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
Modifier and Type | Method | Description |
---|---|---|
static InternCache |
getInstance() |
|
String |
intern(String input) |
|
protected boolean |
removeEldestEntry(Map.Entry<String,String> eldest) |
equals, hashCode, toString
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
public static InternCache getInstance()
protected boolean removeEldestEntry(Map.Entry<String,String> eldest)
removeEldestEntry
in class LinkedHashMap<String,String>
Copyright © 2019 FasterXML. All rights reserved.