cop3337
Class ListIntMap

java.lang.Object
  extended by cop3337.ListIntMap
All Implemented Interfaces:
IntMap

public class ListIntMap
extends java.lang.Object
implements IntMap


Constructor Summary
ListIntMap()
           
 
Method Summary
 int[] allKeys()
           
 Pair[] allPairs()
           
 int[] allValues()
           
 boolean containsKey(int key)
           
 int get(int k)
           
 boolean isEmpty()
           
 void put(int k, int v)
           
 boolean remove(int k)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListIntMap

public ListIntMap()
Method Detail

put

public void put(int k,
                int v)
Specified by:
put in interface IntMap

containsKey

public boolean containsKey(int key)
Specified by:
containsKey in interface IntMap

get

public int get(int k)
Specified by:
get in interface IntMap

remove

public boolean remove(int k)
Specified by:
remove in interface IntMap

allKeys

public int[] allKeys()
Specified by:
allKeys in interface IntMap

allValues

public int[] allValues()
Specified by:
allValues in interface IntMap

allPairs

public Pair[] allPairs()
Specified by:
allPairs in interface IntMap

size

public int size()
Specified by:
size in interface IntMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface IntMap

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object