public class IntHashMap<V> extends Object implements Cloneable, Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
IntHashMap.Visitor<V> |
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_CAPACITY |
private int |
free |
private static byte |
FREE |
private static byte |
FULL |
private int[] |
keys |
private static int |
MAXIMUM_CAPACITY |
private static int |
MINIMUM_CAPACITY |
private static byte |
REMOVED |
private static long |
serialVersionUID |
private int |
size |
private byte[] |
states |
private Object[] |
values |
Constructor and Description |
---|
IntHashMap() |
IntHashMap(int expectedMaxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(IntHashMap.Visitor<V> visitor) |
private int |
capacity(int expectedMaxSize) |
void |
clear() |
Object |
clone() |
boolean |
containsKey(int key) |
V |
get(int key) |
private void |
init(int initCapacity) |
boolean |
isEmpty() |
V |
put(int key,
V value) |
private void |
readObject(ObjectInputStream s) |
void |
rehash() |
V |
remove(int key) |
private void |
resize(int newLength) |
int |
size() |
void |
trimToSize() |
private void |
writeObject(ObjectOutputStream s) |
private static final int DEFAULT_CAPACITY
private static final int MINIMUM_CAPACITY
private static final int MAXIMUM_CAPACITY
private static final byte FREE
private static final byte FULL
private static final byte REMOVED
private transient int[] keys
private transient byte[] states
private transient int free
private transient int size
private static final long serialVersionUID
public IntHashMap()
public IntHashMap(int expectedMaxSize)
private int capacity(int expectedMaxSize)
private void init(int initCapacity)
public int size()
public boolean isEmpty()
public boolean containsKey(int key)
public void trimToSize()
public void rehash()
private void resize(int newLength)
public void clear()
public boolean accept(IntHashMap.Visitor<V> visitor)
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2017 dcm4che.org. All rights reserved.