Package org.apache.lucene.util.mutable
Class MutableValue
java.lang.Object
org.apache.lucene.util.mutable.MutableValue
- All Implemented Interfaces:
Comparable<MutableValue>
- Direct Known Subclasses:
MutableValueBool
,MutableValueDouble
,MutableValueFloat
,MutableValueInt
,MutableValueLong
,MutableValueStr
Base class for all mutable values.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
compareSameType
(Object other) int
compareTo
(MutableValue other) abstract void
copy
(MutableValue source) abstract MutableValue
boolean
abstract boolean
equalsSameType
(Object other) boolean
exists()
abstract int
hashCode()
abstract Object
toObject()
toString()
-
Field Details
-
exists
public boolean exists
-
-
Constructor Details
-
MutableValue
public MutableValue()
-
-
Method Details
-
copy
-
duplicate
-
equalsSameType
-
compareSameType
-
toObject
-
exists
public boolean exists() -
compareTo
- Specified by:
compareTo
in interfaceComparable<MutableValue>
-
equals
-
hashCode
public abstract int hashCode() -
toString
-