Package org.apache.lucene.util.mutable
Class MutableValueInt
java.lang.Object
org.apache.lucene.util.mutable.MutableValue
org.apache.lucene.util.mutable.MutableValueInt
- All Implemented Interfaces:
Comparable<MutableValue>
MutableValue implementation of type int. 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 0 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 int value
-
-
Constructor Details
-
MutableValueInt
public MutableValueInt()
-
-
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
-