public abstract class ToIntMap
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ToIntMap.Entry
The class defining the map entries.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_FOUND_VALUE
The value returned when a key has no mapping.
|
| Constructor and Description |
|---|
ToIntMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all entries from this map.
|
abstract boolean |
containsEntry(ToIntMap.Entry candidate)
Returns true if this map contains the specified entry.
|
boolean |
containsValue(int value)
Returns true if this map maps one or more keys to the
specified value.
|
boolean |
equals(java.lang.Object object)
Compares the specified object with this map for equality.
|
int |
hashCode()
Returns the hash code value for this map.
|
void |
include(ToIntMap map)
Includes all of the entries from the specified map to this one.
|
boolean |
isEmpty()
Returns true iff this map is empty.
|
boolean |
isEqualTo(ToIntMap map)
Compares the specified map object with this map for equality.
|
java.util.Iterator |
iterator()
Returns an iterator through the entries of this map.
|
abstract int |
put(ToIntMap.Entry entry)
Puts the mapping defined by the specified entry into this map.
|
int |
size()
Returns the number of key-value entries in this map.
|
java.lang.String |
toString()
Returns a string form for this map.
|
abstract IntIterator |
values()
Returns an iterator through the values of this map.
|
public static final int NOT_FOUND_VALUE
public final int size()
public final boolean isEmpty()
public final boolean containsValue(int value)
value - the value whose presence in this map is to be tested.public abstract boolean containsEntry(ToIntMap.Entry candidate)
candidate - the entry whose presence in this map is to be tested.public abstract int put(ToIntMap.Entry entry)
entry - the entry whose mapping is to be put into this map.public final void include(ToIntMap map)
map - IntToIntMap whose entries will be stored in this map.public final void clear()
public final java.util.Iterator iterator()
public abstract IntIterator values()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - object to be compared for equality with this map.public final boolean isEqualTo(ToIntMap map)
map - map to be compared for equality with this map.public final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object