Top Inners Fields Constructors Methods
com.sun.xml.fastinfoset.util

public Class CharArrayIntMap

extends KeyIntMap
Class Inheritance
Imports
com.sun.xml.fastinfoset.CommonResourceBundle, java.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private CharArrayIntMap
private CharArrayIntMap.Entry[]
protected int
Inherited from com.sun.xml.fastinfoset.util.KeyIntMap:
_capacity_loadFactor_readOnlyMapSize_size_thresholdDEFAULT_INITIAL_CAPACITYDEFAULT_LOAD_FACTORMAXIMUM_CAPACITYNOT_PRESENT

Constructor Summary

AccessConstructor and Description
public
CharArrayIntMap(int initialCapacity, float loadFactor)

public
CharArrayIntMap(int initialCapacity)

public

Method Summary

Modifier and TypeMethod and Description
private void
addEntry(char[] ch, int start, int length, int hash, int value, int bucketIndex)

public final void
public final int

Returns:

index of character buffer in CharArrayIntMap, otherwise NOT_PRESENT.
get
(char[] ch, int start, int length)

Method returns an index of the passed character buffer in CharArrayIntMap.

private int
get(char[] ch, int start, int length, int hash)

public final int
public final int

Returns:

index of character buffer in CharArrayIntMap, or NOT_PRESENT if character buffer was just added.
obtainIndex
(char[] ch, int start, int length, boolean clone)

Method returns an index of the passed character buffer in CharArrayIntMap.

private void
resize(int newCapacity)

public final void
setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)

Implements abstract com.sun.xml.fastinfoset.util.KeyIntMap.setReadOnlyMap.

public final void
setReadOnlyMap(CharArrayIntMap readOnlyMap, boolean clear)

private void
Inherited from com.sun.xml.fastinfoset.util.KeyIntMap:
hashHashindexForsize

Field Detail

_readOnlyMapback to summary
private CharArrayIntMap _readOnlyMap
_tableback to summary
private CharArrayIntMap.Entry[] _table
_totalCharacterCountback to summary
protected int _totalCharacterCount

Constructor Detail

CharArrayIntMapback to summary
public CharArrayIntMap(int initialCapacity, float loadFactor)
CharArrayIntMapback to summary
public CharArrayIntMap(int initialCapacity)
CharArrayIntMapback to summary
public CharArrayIntMap()

Method Detail

addEntryback to summary
private void addEntry(char[] ch, int start, int length, int hash, int value, int bucketIndex)
clearback to summary
public final void clear()

Implements abstract com.sun.xml.fastinfoset.util.KeyIntMap.clear.

Annotations
@Override
getback to summary
public final int get(char[] ch, int start, int length)

Method returns an index of the passed character buffer in CharArrayIntMap.

Returns:int

index of character buffer in CharArrayIntMap, otherwise NOT_PRESENT.

getback to summary
private int get(char[] ch, int start, int length, int hash)
getTotalCharacterCountback to summary
public final int getTotalCharacterCount()
obtainIndexback to summary
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:int

index of character buffer in CharArrayIntMap, or NOT_PRESENT if character buffer was just added.

resizeback to summary
private void resize(int newCapacity)
setReadOnlyMapback to summary
public final void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)

Implements abstract com.sun.xml.fastinfoset.util.KeyIntMap.setReadOnlyMap.

Annotations
@Override
setReadOnlyMapback to summary
public final void setReadOnlyMap(CharArrayIntMap readOnlyMap, boolean clear)
transferback to summary
private void transfer(CharArrayIntMap.Entry[] newTable)
com.sun.xml.fastinfoset.util back to summary

pack-priv Class CharArrayIntMap.Entry

extends BaseEntry
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final char[]
pack-priv final int
pack-priv CharArrayIntMap.Entry
pack-priv final int
Inherited from com.sun.xml.fastinfoset.util.KeyIntMap.BaseEntry:
_hash_value

Constructor Summary

AccessConstructor and Description
public
Entry(char[] ch, int start, int length, int hash, int value, CharArrayIntMap.Entry next)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equalsCharArray(char[] ch, int start, int length)

Field Detail

_chback to summary
pack-priv final char[] _ch
_lengthback to summary
pack-priv final int _length
_nextback to summary
pack-priv CharArrayIntMap.Entry _next
_startback to summary
pack-priv final int _start

Constructor Detail

Entryback to summary
public Entry(char[] ch, int start, int length, int hash, int value, CharArrayIntMap.Entry next)

Method Detail

equalsCharArrayback to summary
public final boolean equalsCharArray(char[] ch, int start, int length)