Package edu.berkeley.nlp.lm.collections
Class LongToIntHashMap.Entry
- java.lang.Object
-
- edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
-
- All Implemented Interfaces:
java.lang.Comparable<LongToIntHashMap.Entry>,java.util.Map.Entry<java.lang.Long,java.lang.Integer>
- Enclosing class:
- LongToIntHashMap
public class LongToIntHashMap.Entry extends java.lang.Object implements java.util.Map.Entry<java.lang.Long,java.lang.Integer>, java.lang.Comparable<LongToIntHashMap.Entry>
-
-
Constructor Summary
Constructors Constructor Description Entry(long key, int value, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LongToIntHashMap.Entry o)java.lang.LonggetKey()java.lang.IntegergetValue()java.lang.IntegersetValue(java.lang.Integer value)
-
-
-
Method Detail
-
getKey
public java.lang.Long getKey()
- Specified by:
getKeyin interfacejava.util.Map.Entry<java.lang.Long,java.lang.Integer>
-
getValue
public java.lang.Integer getValue()
- Specified by:
getValuein interfacejava.util.Map.Entry<java.lang.Long,java.lang.Integer>
-
setValue
public java.lang.Integer setValue(java.lang.Integer value)
- Specified by:
setValuein interfacejava.util.Map.Entry<java.lang.Long,java.lang.Integer>
-
compareTo
public int compareTo(LongToIntHashMap.Entry o)
- Specified by:
compareToin interfacejava.lang.Comparable<LongToIntHashMap.Entry>
-
-