edu.ksu.cis.projects.trove.custom
Class ObjectIntTable<K>

java.lang.Object
  extended by edu.ksu.cis.projects.trove.custom.ObjectIntTable<K>

public class ObjectIntTable<K>
extends Object


Constructor Summary
ObjectIntTable()
          Public constructor
ObjectIntTable(int initialCapacity)
           
ObjectIntTable(int initialCapacity, float loadFactor)
          Public constructor
 
Method Summary
 boolean adjustValue(K key, int amount)
           
 void clear()
           
 ObjectIntTable<K> clone()
           
 void compact()
           
 int computeHashCode(K o)
           
 boolean contains(K obj)
           
 boolean containsKey(K key)
           
 boolean containsValue(int val)
           
 void ensureCapacity(int desiredCapacity)
           
 boolean equals(K o1, K o2)
           
 boolean equals(Object other)
           
 int get(K key)
           
 int[] getValues()
           
 boolean increment(K key)
           
 boolean isEmpty()
           
 Set<K> keySet(boolean domainImplementsComparable)
           
 int put(K key, int value)
           
 int remove(K key)
           
 int size()
           
 void trimToSize()
           
 int[] values()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIntTable

public ObjectIntTable()
Public constructor


ObjectIntTable

public ObjectIntTable(int initialCapacity,
                      float loadFactor)
Public constructor


ObjectIntTable

public ObjectIntTable(int initialCapacity)
Method Detail

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()