com.sun.xml.fastinfoset.util
Class CharArrayIntMap

java.lang.Object
  extended by com.sun.xml.fastinfoset.util.KeyIntMap
      extended by com.sun.xml.fastinfoset.util.CharArrayIntMap

public class CharArrayIntMap
extends KeyIntMap


Field Summary
protected  int _totalCharacterCount
           
 
Fields inherited from class com.sun.xml.fastinfoset.util.KeyIntMap
NOT_PRESENT
 
Constructor Summary
CharArrayIntMap()
           
CharArrayIntMap(int initialCapacity)
           
CharArrayIntMap(int initialCapacity, float loadFactor)
           
 
Method Summary
 void clear()
           
 int get(char[] ch, int start, int length)
          Method returns an index of the passed character buffer in CharArrayIntMap.
 int getTotalCharacterCount()
           
 int obtainIndex(char[] ch, int start, int length, boolean clone)
          Method returns an index of the passed character buffer in CharArrayIntMap.
 void setReadOnlyMap(CharArrayIntMap readOnlyMap, boolean clear)
           
 void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
           
 
Methods inherited from class com.sun.xml.fastinfoset.util.KeyIntMap
hashHash, indexFor, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_totalCharacterCount

protected int _totalCharacterCount
Constructor Detail

CharArrayIntMap

public CharArrayIntMap(int initialCapacity,
                       float loadFactor)

CharArrayIntMap

public CharArrayIntMap(int initialCapacity)

CharArrayIntMap

public CharArrayIntMap()
Method Detail

clear

public final void clear()
Specified by:
clear in class KeyIntMap

setReadOnlyMap

public final void setReadOnlyMap(KeyIntMap readOnlyMap,
                                 boolean clear)
Specified by:
setReadOnlyMap in class KeyIntMap

setReadOnlyMap

public final void setReadOnlyMap(CharArrayIntMap readOnlyMap,
                                 boolean clear)

get

public final int get(char[] ch,
                     int start,
                     int length)
Method returns an index of the passed character buffer in CharArrayIntMap.

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 in CharArrayIntMap. If character buffer is not in CharArrayIntMap - 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()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.