Package com.sun.xml.fastinfoset.util
Class CharArrayIntMap
java.lang.Object
com.sun.xml.fastinfoset.util.KeyIntMap
com.sun.xml.fastinfoset.util.CharArrayIntMap
-
Field Summary
FieldsFields inherited from class com.sun.xml.fastinfoset.util.KeyIntMap
NOT_PRESENT
-
Constructor Summary
ConstructorsConstructorDescriptionCharArrayIntMap
(int initialCapacity) CharArrayIntMap
(int initialCapacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
clear()
final int
get
(char[] ch, int start, int length) Method returns an index of the passed character buffer inCharArrayIntMap
.final int
final int
obtainIndex
(char[] ch, int start, int length, boolean clone) Method returns an index of the passed character buffer inCharArrayIntMap
.final void
setReadOnlyMap
(CharArrayIntMap readOnlyMap, boolean clear) final void
setReadOnlyMap
(KeyIntMap readOnlyMap, boolean clear)
-
Field Details
-
_totalCharacterCount
protected int _totalCharacterCount
-
-
Constructor Details
-
CharArrayIntMap
public CharArrayIntMap(int initialCapacity, float loadFactor) -
CharArrayIntMap
public CharArrayIntMap(int initialCapacity) -
CharArrayIntMap
public CharArrayIntMap()
-
-
Method Details
-
clear
public final void clear() -
setReadOnlyMap
- Specified by:
setReadOnlyMap
in classKeyIntMap
-
setReadOnlyMap
-
get
public final int get(char[] ch, int start, int length) Method returns an index of the passed character buffer inCharArrayIntMap
.- Returns:
- index of character buffer in
CharArrayIntMap
, otherwise NOT_PRESENT.
-
obtainIndex
public final int obtainIndex(char[] ch, int start, int length, boolean clone) Method returns an index of the passed character buffer inCharArrayIntMap
. If character buffer is not inCharArrayIntMap
- it will be added.- Returns:
- index of character buffer in
CharArrayIntMap
, or NOT_PRESENT if character buffer was just added.
-
getTotalCharacterCount
public final int getTotalCharacterCount()
-