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
public abstract class MutableValue extends Object implements Comparable<MutableValue>
Base class for all mutable values.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
exists
-
Constructor Summary
Constructors Constructor Description MutableValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
compareSameType(Object other)
int
compareTo(MutableValue other)
abstract void
copy(MutableValue source)
abstract MutableValue
duplicate()
boolean
equals(Object other)
abstract boolean
equalsSameType(Object other)
boolean
exists()
abstract int
hashCode()
abstract Object
toObject()
String
toString()
-
-
-
Method Detail
-
copy
public abstract void copy(MutableValue source)
-
duplicate
public abstract MutableValue duplicate()
-
equalsSameType
public abstract boolean equalsSameType(Object other)
-
compareSameType
public abstract int compareSameType(Object other)
-
toObject
public abstract Object toObject()
-
exists
public boolean exists()
-
compareTo
public int compareTo(MutableValue other)
- Specified by:
compareTo
in interfaceComparable<MutableValue>
-
-