Class InternCache

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<String,​String>

    public final class InternCache
    extends LinkedHashMap<String,​String>
    Singleton class that implements "fast intern" functionality, essentially adding a layer that caches Strings that have been previously intern()ed, but that probably shouldn't be added to symbol tables. This is usually used by improving intern()ing of things like namespace URIs.

    Note: that this class extends LinkedHashMap is an implementation detail -- no code should ever directly call Map methods.

    See Also:
    Serialized Form