Package org.apache.lucene.util.mutable
Class MutableValue
- java.lang.Object
-
- org.apache.lucene.util.mutable.MutableValue
-
- All Implemented Interfaces:
java.lang.Comparable<MutableValue>
- Direct Known Subclasses:
MutableValueBool
,MutableValueDouble
,MutableValueFloat
,MutableValueInt
,MutableValueLong
,MutableValueStr
public abstract class MutableValue extends java.lang.Object implements java.lang.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(java.lang.Object other)
int
compareTo(MutableValue other)
abstract void
copy(MutableValue source)
abstract MutableValue
duplicate()
boolean
equals(java.lang.Object other)
abstract boolean
equalsSameType(java.lang.Object other)
boolean
exists()
abstract int
hashCode()
abstract java.lang.Object
toObject()
java.lang.String
toString()
-
-
-
Method Detail
-
copy
public abstract void copy(MutableValue source)
-
duplicate
public abstract MutableValue duplicate()
-
equalsSameType
public abstract boolean equalsSameType(java.lang.Object other)
-
compareSameType
public abstract int compareSameType(java.lang.Object other)
-
toObject
public abstract java.lang.Object toObject()
-
exists
public boolean exists()
-
compareTo
public int compareTo(MutableValue other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MutableValue>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-