ch.javasoft.util.intcoll
Class AbstractIntIntMap

java.lang.Object
  extended by java.util.AbstractMap<Integer,Integer>
      extended by ch.javasoft.util.intcoll.AbstractIntIntMap
All Implemented Interfaces:
IntIntMap, IntMap<Integer>, Map<Integer,Integer>
Direct Known Subclasses:
DefaultIntIntMap, KeyRangeIntIntMap

public abstract class AbstractIntIntMap
extends AbstractMap<Integer,Integer>
implements IntIntMap

AbstractIntIntMap is the superclass for usual maps from int to int.


Nested Class Summary
static class AbstractIntIntMap.ImmutableIntIntEntry
           
static class AbstractIntIntMap.SimpleIntIntEntry
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface ch.javasoft.util.intcoll.IntIntMap
IntIntMap.IntIntEntry
 
Nested classes/interfaces inherited from interface ch.javasoft.util.intcoll.IntMap
IntMap.IntEntry<V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AbstractIntIntMap()
           
 
Method Summary
 boolean containsKey(int key)
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<Integer,Integer>> entrySet()
           
 Integer get(int key)
           
 Integer get(Object key)
           
 Set<IntMap.IntEntry<Integer>> intEntrySet()
           
 boolean isEmpty()
           
abstract  IntSet keySet()
           
 Integer put(Integer key, Integer value)
           
 Integer put(int key, Integer value)
           
 void putAll(IntIntMap map)
           
 void putAll(IntMap<? extends Integer> map)
           
 void putAll(Map<? extends Integer,? extends Integer> map)
           
 Integer remove(Object key)
           
abstract  IntCollection values()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, equals, hashCode, size, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.javasoft.util.intcoll.IntIntMap
containsValue, getInt, intIntEntrySet, put
 
Methods inherited from interface ch.javasoft.util.intcoll.IntMap
remove
 
Methods inherited from interface java.util.Map
clear, equals, hashCode, size
 

Constructor Detail

AbstractIntIntMap

public AbstractIntIntMap()
Method Detail

get

public Integer get(Object key)
Specified by:
get in interface Map<Integer,Integer>
Overrides:
get in class AbstractMap<Integer,Integer>

get

public Integer get(int key)
Specified by:
get in interface IntMap<Integer>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<Integer,Integer>
Overrides:
containsKey in class AbstractMap<Integer,Integer>

containsKey

public boolean containsKey(int key)
Specified by:
containsKey in interface IntIntMap
Specified by:
containsKey in interface IntMap<Integer>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<Integer,Integer>
Overrides:
containsValue in class AbstractMap<Integer,Integer>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<Integer,Integer>
Overrides:
isEmpty in class AbstractMap<Integer,Integer>

entrySet

public Set<Map.Entry<Integer,Integer>> entrySet()
Specified by:
entrySet in interface IntMap<Integer>
Specified by:
entrySet in interface Map<Integer,Integer>
Specified by:
entrySet in class AbstractMap<Integer,Integer>

intEntrySet

public Set<IntMap.IntEntry<Integer>> intEntrySet()
Specified by:
intEntrySet in interface IntMap<Integer>

put

public Integer put(int key,
                   Integer value)
Specified by:
put in interface IntMap<Integer>

put

public Integer put(Integer key,
                   Integer value)
Specified by:
put in interface Map<Integer,Integer>
Overrides:
put in class AbstractMap<Integer,Integer>

putAll

public void putAll(IntIntMap map)
Specified by:
putAll in interface IntIntMap

putAll

public void putAll(IntMap<? extends Integer> map)
Specified by:
putAll in interface IntMap<Integer>

putAll

public void putAll(Map<? extends Integer,? extends Integer> map)
Specified by:
putAll in interface Map<Integer,Integer>
Overrides:
putAll in class AbstractMap<Integer,Integer>

remove

public Integer remove(Object key)
Specified by:
remove in interface Map<Integer,Integer>
Overrides:
remove in class AbstractMap<Integer,Integer>

values

public abstract IntCollection values()
Specified by:
values in interface IntIntMap
Specified by:
values in interface Map<Integer,Integer>
Overrides:
values in class AbstractMap<Integer,Integer>

keySet

public abstract IntSet keySet()
Specified by:
keySet in interface IntMap<Integer>
Specified by:
keySet in interface Map<Integer,Integer>
Overrides:
keySet in class AbstractMap<Integer,Integer>