Package org.apache.lucene.util.mutable
Class MutableValueStr
java.lang.Object
org.apache.lucene.util.mutable.MutableValue
org.apache.lucene.util.mutable.MutableValueStr
- All Implemented Interfaces:
Comparable<MutableValue>
MutableValue implementation of type String. When mutating instances of this
object, the caller is responsible for ensuring that any instance where exists is set
to false must also have a value with a length set to 0.-
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
-
-
Constructor Details
-
MutableValueStr
public MutableValueStr()
-
-
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
-