edu.ksu.cis.projects.trove.custom
Class ObjectIntTable<K>
java.lang.Object
edu.ksu.cis.projects.trove.custom.ObjectIntTable<K>
public class ObjectIntTable<K>
- extends Object
ObjectIntTable
public ObjectIntTable()
- Public constructor
ObjectIntTable
public ObjectIntTable(int initialCapacity,
float loadFactor)
- Public constructor
ObjectIntTable
public ObjectIntTable(int initialCapacity)
adjustValue
public boolean adjustValue(K key,
int amount)
clear
public void clear()
containsKey
public boolean containsKey(K key)
containsValue
public boolean containsValue(int val)
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
get
public int get(K key)
getValues
public int[] getValues()
values
public int[] values()
increment
public boolean increment(K key)
keySet
public Set<K> keySet(boolean domainImplementsComparable)
put
public int put(K key,
int value)
remove
public int remove(K key)
clone
public ObjectIntTable<K> clone()
- Overrides:
clone
in class Object
computeHashCode
public int computeHashCode(K o)
contains
public boolean contains(K obj)
equals
public boolean equals(K o1,
K o2)
compact
public void compact()
ensureCapacity
public void ensureCapacity(int desiredCapacity)
isEmpty
public boolean isEmpty()
size
public int size()
trimToSize
public void trimToSize()