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

public abstract Class KeyIntMap

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.xml.fastinfoset.util.LocalNameQualifiedNamesMap, com.sun.xml.fastinfoset.util.StringIntMap, com.sun.xml.fastinfoset.util.CharArrayIntMap
Imports
com.sun.xml.fastinfoset.CommonResourceBundle

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv final float
_loadFactor

The load factor for the hash table.

pack-priv int
pack-priv int
_size

The number of key-value mappings contained in this identity hash map.

pack-priv int
_threshold

The next size value at which to resize (capacity * load factor).

pack-priv static final int
DEFAULT_INITIAL_CAPACITY

The default initial capacity - MUST be a power of two.

pack-priv static final float
DEFAULT_LOAD_FACTOR

The load factor used when none specified in constructor.

pack-priv static final int
MAXIMUM_CAPACITY

The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments.

public static final int

Constructor Summary

AccessConstructor and Description
protected
KeyIntMap(int initialCapacity, float loadFactor)

protected
KeyIntMap(int initialCapacity)

protected

Method Summary

Modifier and TypeMethod and Description
public abstract void
public static final int
hashHash(int h)

public static final int
indexFor(int h, int length)

public abstract void
setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)

public final int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_capacityback to summary
pack-priv int _capacity
_loadFactorback to summary
pack-priv final float _loadFactor

The load factor for the hash table.

_readOnlyMapSizeback to summary
pack-priv int _readOnlyMapSize
_sizeback to summary
pack-priv int _size

The number of key-value mappings contained in this identity hash map.

_thresholdback to summary
pack-priv int _threshold

The next size value at which to resize (capacity * load factor).

DEFAULT_INITIAL_CAPACITYback to summary
pack-priv static final int DEFAULT_INITIAL_CAPACITY

The default initial capacity - MUST be a power of two.

DEFAULT_LOAD_FACTORback to summary
pack-priv static final float DEFAULT_LOAD_FACTOR

The load factor used when none specified in constructor.

MAXIMUM_CAPACITYback to summary
pack-priv static final int MAXIMUM_CAPACITY

The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments. MUST be a power of two <= 1<<30.

NOT_PRESENTback to summary
public static final int NOT_PRESENT

Constructor Detail

KeyIntMapback to summary
protected KeyIntMap(int initialCapacity, float loadFactor)
KeyIntMapback to summary
protected KeyIntMap(int initialCapacity)
KeyIntMapback to summary
protected KeyIntMap()

Method Detail

clearback to summary
public abstract void clear()
hashHashback to summary
public static final int hashHash(int h)
indexForback to summary
public static final int indexFor(int h, int length)
setReadOnlyMapback to summary
public abstract void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
sizeback to summary
public final int size()
com.sun.xml.fastinfoset.util back to summary

pack-priv Class KeyIntMap.BaseEntry

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.xml.fastinfoset.util.StringIntMap.Entry, com.sun.xml.fastinfoset.util.CharArrayIntMap.Entry

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
BaseEntry(int hash, int value)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_hashback to summary
pack-priv final int _hash
_valueback to summary
pack-priv final int _value

Constructor Detail

BaseEntryback to summary
public BaseEntry(int hash, int value)