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 an 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 SummaryConstructors Constructor Description EnumFieldValue(Integer intValue, String stringValue)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EnumFieldValue o)booleanequals(Object obj)inthashCode()IntegertoInt()StringtoString()
 
- 
- 
- 
Method Detail- 
toStringpublic String toString() 
 - 
toIntpublic Integer toInt() - Returns:
- integer value (indicating the sort order)
 
 - 
compareTopublic int compareTo(EnumFieldValue o) - Specified by:
- compareToin interface- Comparable<EnumFieldValue>
 
 
- 
 
-