edu.berkeley.nlp.lm.util
Class LongRef

java.lang.Object
  extended by edu.berkeley.nlp.lm.util.LongRef
All Implemented Interfaces:
LongRepresentable<LongRef>, Serializable, Comparable<LongRef>

public class LongRef
extends Object
implements Comparable<LongRef>, Serializable, LongRepresentable<LongRef>

See Also:
Serialized Form

Field Summary
 long value
           
 
Constructor Summary
LongRef(long value)
           
 
Method Summary
 long asLong()
           
 int compareTo(LongRef arg0)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public long value
Constructor Detail

LongRef

public LongRef(long value)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(LongRef arg0)
Specified by:
compareTo in interface Comparable<LongRef>

toString

public String toString()
Overrides:
toString in class Object

asLong

public long asLong()
Specified by:
asLong in interface LongRepresentable<LongRef>