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
MutableValue implementation of type long. When mutating instances of this
object, the caller is responsible for ensuring that any instance where exists is set
to false must also value set to 0L for proper operation.-
Field Summary
FieldsFields inherited from class org.apache.lucene.util.mutable.MutableValue
exists -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareSameType(Object other) voidcopy(MutableValue source) booleanequalsSameType(Object other) inthashCode()toObject()Methods inherited from class org.apache.lucene.util.mutable.MutableValue
compareTo, equals, exists, toString
-
Field Details
-
value
public long value
-
-
Constructor Details
-
MutableValueLong
public MutableValueLong()
-
-
Method Details
-
toObject
- Specified by:
toObjectin classMutableValue
-
copy
- Specified by:
copyin classMutableValue
-
duplicate
- Specified by:
duplicatein classMutableValue
-
equalsSameType
- Specified by:
equalsSameTypein classMutableValue
-
compareSameType
- Specified by:
compareSameTypein classMutableValue
-
hashCode
public int hashCode()- Specified by:
hashCodein classMutableValue
-