com.threerings.tudey.util
Class CoordIntMap.CoordIntEntry

java.lang.Object
  extended by com.threerings.tudey.util.CoordIntMap.CoordIntEntry
All Implemented Interfaces:
Map.Entry<Coord,Integer>
Enclosing class:
CoordIntMap

public static class CoordIntMap.CoordIntEntry
extends Object
implements Map.Entry<Coord,Integer>

An entry in the map.


Constructor Summary
CoordIntMap.CoordIntEntry()
           
 
Method Summary
 boolean equals(Object other)
           
 int getIntValue()
          Returns the value of the entry as an integer.
 Coord getKey()
           
 Integer getValue()
           
 int hashCode()
           
 int setIntValue(int value)
          Sets the value of the entry as an integer.
 Integer setValue(Integer value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordIntMap.CoordIntEntry

public CoordIntMap.CoordIntEntry()
Method Detail

setIntValue

public int setIntValue(int value)
Sets the value of the entry as an integer.

Returns:
the original value of the entry.

getIntValue

public int getIntValue()
Returns the value of the entry as an integer.


getKey

public Coord getKey()
Specified by:
getKey in interface Map.Entry<Coord,Integer>

getValue

public Integer getValue()
Specified by:
getValue in interface Map.Entry<Coord,Integer>

setValue

public Integer setValue(Integer value)
Specified by:
setValue in interface Map.Entry<Coord,Integer>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Specified by:
equals in interface Map.Entry<Coord,Integer>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<Coord,Integer>
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.