edu.berkeley.nlp.lm.collections
Class LongToIntHashMap.Entry

java.lang.Object
  extended by edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
All Implemented Interfaces:
Comparable<LongToIntHashMap.Entry>, Map.Entry<Long,Integer>
Enclosing class:
LongToIntHashMap

public class LongToIntHashMap.Entry
extends Object
implements Map.Entry<Long,Integer>, Comparable<LongToIntHashMap.Entry>


Field Summary
 long key
           
 int value
           
 
Constructor Summary
LongToIntHashMap.Entry(long key, int value, int index)
           
 
Method Summary
 int compareTo(LongToIntHashMap.Entry o)
           
 Long getKey()
           
 Integer getValue()
           
 Integer setValue(Integer value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

key

public long key

value

public int value
Constructor Detail

LongToIntHashMap.Entry

public LongToIntHashMap.Entry(long key,
                              int value,
                              int index)
Method Detail

getKey

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

getValue

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

setValue

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

compareTo

public int compareTo(LongToIntHashMap.Entry o)
Specified by:
compareTo in interface Comparable<LongToIntHashMap.Entry>