java.lang.Object
com.pervasive.datarush.types.EnumeratedValues
- All Implemented Interfaces:
Serializable
Deprecated.
An unordered set of values defining an enumeration.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.The ordinal value indicating a null value -
Constructor Summary
ConstructorsConstructorDescriptionEnumeratedValues(List<String> values) Deprecated.Defines a new enumeration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.intDeprecated.Returns the default value that is assumed for unspecified sparse data valuesintgetOrdinal(String value) Deprecated.Gets the ordinal value of the given enumeration value.getValue(int ordinal) Deprecated.Gets the enumeration value specified by the given ordinal value.Deprecated.Gets the values in the enumeration.inthashCode()Deprecated.booleanisValidOrdinal(int ordinal) Deprecated.Indicates whether the given ordinal is valid for the enumeration.booleanisValidValue(String value) Deprecated.Indicates whether the given value is valid for the enumeration.intsize()Deprecated.Gets the number of values define in the enumeration.toString()Deprecated.
-
Field Details
-
NULL_ORDINAL
public static final int NULL_ORDINALDeprecated.The ordinal value indicating a null value- See Also:
-
-
Constructor Details
-
EnumeratedValues
Deprecated.Defines a new enumeration. The order of the provided values will be preserved but, other than the first element, is insignificant. The first element is special since it represents the default value that is assumed for unspecified sparse values.- Parameters:
defaultValue- the default value that is assumed for unspecified sparse data valuesvalues- the values belonging to the enumeration- Throws:
IllegalArgumentException- if a value appears multiple times or if the default value is not in the specified list of values
-
-
Method Details
-
getValues
Deprecated.Gets the values in the enumeration. These values will be returned in the same order that was specified upon creation. Note that order is insignificant for the purposes of comparisions ( comparisons will be based on the sorted string order ).- Returns:
- the values of the enumeration
-
size
public int size()Deprecated.Gets the number of values define in the enumeration.- Returns:
- the count of enumeration values
-
isValidOrdinal
public boolean isValidOrdinal(int ordinal) Deprecated.Indicates whether the given ordinal is valid for the enumeration.- Parameters:
ordinal- the ordinal value to test- Returns:
trueif the ordinal specifies a value in the enumeration,falseotherwise
-
getOrdinal
Deprecated.Gets the ordinal value of the given enumeration value.- Parameters:
value- the value for which to obtain the ordinal value- Returns:
- the ordinal representing the enumeration value
- Throws:
IndexOutOfBoundsException- if the value is not valid for the enumeration
-
isValidValue
Deprecated.Indicates whether the given value is valid for the enumeration.- Parameters:
value- the value to test- Returns:
trueif the value is in the enumeration,falseotherwise
-
getValue
Deprecated.Gets the enumeration value specified by the given ordinal value.- Parameters:
ordinal- the ordinal for which to obtain the value- Returns:
- the enumeration value represented by the ordinal
- Throws:
IndexOutOfBoundsException- if the ordinal is not valid for the enumeration
-
getDefaultOrdinal
public int getDefaultOrdinal()Deprecated.Returns the default value that is assumed for unspecified sparse data values- Returns:
- the default value
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-