public final class EnumeratedValues extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
NULL_ORDINAL
Deprecated.
The ordinal value indicating a null value
|
Constructor and Description |
---|
EnumeratedValues(List<String> values)
Deprecated.
Defines a new enumeration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
int |
getDefaultOrdinal()
Deprecated.
Returns the default value that is assumed for unspecified sparse data values
|
int |
getOrdinal(String value)
Deprecated.
Gets the ordinal value of the given enumeration value.
|
String |
getValue(int ordinal)
Deprecated.
Gets the enumeration value specified by the given ordinal value.
|
List<String> |
getValues()
Deprecated.
Gets the values in the enumeration.
|
int |
hashCode()
Deprecated.
|
boolean |
isValidOrdinal(int ordinal)
Deprecated.
Indicates whether the given ordinal is valid for the
enumeration.
|
boolean |
isValidValue(String value)
Deprecated.
Indicates whether the given value is valid for the
enumeration.
|
int |
size()
Deprecated.
Gets the number of values define in the enumeration.
|
String |
toString()
Deprecated.
|
public static final int NULL_ORDINAL
public EnumeratedValues(List<String> values)
defaultValue
- the default value that is assumed for unspecified sparse data valuesvalues
- the values belonging to the enumerationIllegalArgumentException
- if a value appears multiple times or if the default value is not in the specified list of valuespublic List<String> getValues()
public int size()
public boolean isValidOrdinal(int ordinal)
ordinal
- the ordinal value to testtrue
if the ordinal specifies a
value in the enumeration, false
otherwisepublic int getOrdinal(String value)
value
- the value for which to obtain the ordinal valueIndexOutOfBoundsException
- if the value is not valid
for the enumerationpublic boolean isValidValue(String value)
value
- the value to testtrue
if the value is in the enumeration,
false
otherwisepublic String getValue(int ordinal)
ordinal
- the ordinal for which to obtain the valueIndexOutOfBoundsException
- if the ordinal is not valid
for the enumerationpublic int getDefaultOrdinal()
Copyright © 2016 Actian Corporation. All rights reserved.