Class StringVector
java.lang.Object
com.ctc.wstx.util.StringVector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddStrings(String str1, String str2) String[]asArray()voidclear(boolean removeRefs) booleancontainsInterned(String value) findLastByValueNonInterned(String value) findLastFromMap(String key) Specialized access method; treats vector as a Map, with 2 Strings per entry; first one being key, second value.intintString[]getString(int index) booleanisEmpty()voidremoveLast(int count) voidintsize()toString()
-
Field Details
-
mStrings
-
mSize
private int mSize
-
-
Constructor Details
-
StringVector
public StringVector(int initialCount)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
getString
-
getLastString
-
getInternalArray
-
asArray
-
containsInterned
-
addString
-
addStrings
-
setString
-
clear
public void clear(boolean removeRefs) -
removeLast
-
removeLast
public void removeLast(int count) -
findLastFromMap
Specialized access method; treats vector as a Map, with 2 Strings per entry; first one being key, second value. Further, keys are assumed to be canonicalized with passed in key (ie. either intern()ed, or resolved from symbol table). Starting from the end (assuming even number of entries), tries to find an entry with matching key, and if so, returns value. -
findLastNonInterned
-
findLastIndexNonInterned
-
findLastByValueNonInterned
-
findLastIndexByValueNonInterned
-
toString
-