protected static class NamespaceContextMap.NamespacePrefixes extends HashSet<String>
LinkedHashSet
instead, which would provide a theoretical
performance improvement to remove(Object)
(and any add(String)
that results
in a remove(Object)
). However:
LinkedHashSet
doesn't currently provide any available method for customizing this.LinkedHashSet
's "insertion order is not affected if an element is
re-inserted into the set", instead of the re-ordering required on re-insertion.Modifier and Type | Field and Description |
---|---|
protected LinkedList<String> |
order |
Modifier | Constructor and Description |
---|---|
protected |
NamespacePrefixes() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String prefix) |
void |
clear() |
String |
getFirst() |
Iterator<String> |
iterator() |
boolean |
remove(Object prefix) |
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
parallelStream, removeIf, stream
Copyright © 2008–2017 Mark A. Ziesemer. All rights reserved.