Package org.apache.solr.common
Class EnumFieldValue
- java.lang.Object
-
- org.apache.solr.common.EnumFieldValue
-
- All Implemented Interfaces:
Serializable
,Comparable<EnumFieldValue>
public final class EnumFieldValue extends Object implements Serializable, Comparable<EnumFieldValue>
Represents a Enum field value, which includes integer value (indicating the sort order) and string (displayed) value. Note: this class has a natural ordering that is inconsistent with equals- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumFieldValue(Integer intValue, String stringValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(EnumFieldValue o)
boolean
equals(Object obj)
int
hashCode()
Integer
toInt()
String
toString()
-
-
-
Method Detail
-
toString
public String toString()
-
toInt
public Integer toInt()
- Returns:
- integer value (indicating the sort order)
-
compareTo
public int compareTo(EnumFieldValue o)
- Specified by:
compareTo
in interfaceComparable<EnumFieldValue>
-
-