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.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description booleanexists
-
Constructor Summary
Constructors Constructor Description MutableValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intcompareSameType(Object other)intcompareTo(MutableValue other)abstract voidcopy(MutableValue source)abstract MutableValueduplicate()booleanequals(Object other)abstract booleanequalsSameType(Object other)booleanexists()abstract inthashCode()abstract ObjecttoObject()StringtoString()
-
-
-
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:
compareToin interfaceComparable<MutableValue>
-
-