Package org.apache.lucene.util.mutable
Class MutableValueLong
- java.lang.Object
-
- org.apache.lucene.util.mutable.MutableValue
-
- org.apache.lucene.util.mutable.MutableValueLong
-
- All Implemented Interfaces:
Comparable<MutableValue>
- Direct Known Subclasses:
MutableValueDate
public class MutableValueLong extends MutableValue
MutableValueimplementation of typelong. When mutating instances of this object, the caller is responsible for ensuring that any instance whereexistsis set tofalsemust alsovalueset to0Lfor proper operation.
-
-
Field Summary
Fields Modifier and Type Field Description longvalue-
Fields inherited from class org.apache.lucene.util.mutable.MutableValue
exists
-
-
Constructor Summary
Constructors Constructor Description MutableValueLong()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareSameType(Object other)voidcopy(MutableValue source)MutableValueduplicate()booleanequalsSameType(Object other)inthashCode()ObjecttoObject()-
Methods inherited from class org.apache.lucene.util.mutable.MutableValue
compareTo, equals, exists, toString
-
-
-
-
Method Detail
-
toObject
public Object toObject()
- Specified by:
toObjectin classMutableValue
-
copy
public void copy(MutableValue source)
- Specified by:
copyin classMutableValue
-
duplicate
public MutableValue duplicate()
- Specified by:
duplicatein classMutableValue
-
equalsSameType
public boolean equalsSameType(Object other)
- Specified by:
equalsSameTypein classMutableValue
-
compareSameType
public int compareSameType(Object other)
- Specified by:
compareSameTypein classMutableValue
-
hashCode
public int hashCode()
- Specified by:
hashCodein classMutableValue
-
-