Package com.ctc.wstx.dtd
Class LargePrefixedNameSet
java.lang.Object
com.ctc.wstx.dtd.PrefixedNameSet
com.ctc.wstx.dtd.LargePrefixedNameSet
Implementation of
PrefixedNameSet suitable for storing large number
of entries; basically anything above trivially small sets (4 or less).
Notes about usage:
- All Strings contained in
PrefixedNameinstances are assumed interned, so that equality comparison can be done (both for values stored and keys used) - It is assumed that sets are never empty, ie. always contain at least one entry.
- It is assumed that caller has ensured that there are no duplicates in the set -- this data structure does no further validation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendNames(StringBuilder sb, String sep) Method called by debug/error handling code, to get a list of all names contained.booleancontains(PrefixedName name) booleanMethods inherited from class com.ctc.wstx.dtd.PrefixedNameSet
toString, toString
-
Constructor Details
-
LargePrefixedNameSet
-
-
Method Details
-
hasMultiple
public boolean hasMultiple()- Specified by:
hasMultiplein classPrefixedNameSet- Returns:
- True if set contains more than one entry; false if not (empty or has one)
-
contains
- Specified by:
containsin classPrefixedNameSet- Returns:
- True if the set contains specified name; false if not.
-
appendNames
Method called by debug/error handling code, to get a list of all names contained.- Specified by:
appendNamesin classPrefixedNameSet
-