Note
the keys are limited to values above Integer.MIN_VALUE+1.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private static final int | |
| private static final int | |
| private static final float | |
| private int | |
| private int[] | |
| private static final float | |
| private int | |
| private static final int | |
| private int | |
| private static final int[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(Object that)
Overrides java. Indicates whether some other object is "equal to" this one. |
| private int | |
| public int | |
| public int | |
| public int | |
| private void | |
| public boolean | |
| private static int | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public int |
| count | back to summary |
|---|---|
| private int count | |
| defaultValue | back to summary |
|---|---|
| private int defaultValue | |
| DELETED | back to summary |
|---|---|
| private static final int DELETED | |
| EMPTY | back to summary |
|---|---|
| private static final int EMPTY | |
| HIGH_WATER_FACTOR | back to summary |
|---|---|
| private static final float HIGH_WATER_FACTOR | |
| highWaterMark | back to summary |
|---|---|
| private int highWaterMark | |
| keyList | back to summary |
|---|---|
| private int[] keyList | |
| LOW_WATER_FACTOR | back to summary |
|---|---|
| private static final float LOW_WATER_FACTOR | |
| lowWaterMark | back to summary |
|---|---|
| private int lowWaterMark | |
| MAX_UNUSED | back to summary |
|---|---|
| private static final int MAX_UNUSED | |
| primeIndex | back to summary |
|---|---|
| private int primeIndex | |
| PRIMES | back to summary |
|---|---|
| private static final int[] PRIMES | |
| values | back to summary |
|---|---|
| private int[] values | |
| IntHashtable | back to summary |
|---|---|
| public IntHashtable() | |
| IntHashtable | back to summary |
|---|---|
| public IntHashtable(int initialSize) | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| find | back to summary |
|---|---|
| private int find(int key) | |
| get | back to summary |
|---|---|
| public int get(int key) | |
| getDefaultValue | back to summary |
|---|---|
| public int getDefaultValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initialize | back to summary |
|---|---|
| private void initialize(int primeIndex) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| leastGreaterPrimeIndex | back to summary |
|---|---|
| private static int leastGreaterPrimeIndex(int source) | |
| put | back to summary |
|---|---|
| public void put(int key, int value) | |
| putInternal | back to summary |
|---|---|
| public void putInternal(int key, int value) | |
| rehash | back to summary |
|---|---|
| private void rehash() | |
| remove | back to summary |
|---|---|
| public void remove(int key) | |
| setDefaultValue | back to summary |
|---|---|
| public void setDefaultValue(int newValue) | |
| size | back to summary |
|---|---|
| public int size() | |