public static class ERXConstant.NumberConstant extends Number implements ERXConstant.Constant
Modifier | Constructor and Description |
---|---|
protected |
NumberConstant(int value,
String name)
Sets the value and puts the object in the store keyed by class name and value.
|
Modifier and Type | Method and Description |
---|---|
static ERXConstant.NumberConstant |
constantForClassNamed(int value,
String clazzName)
Retrieves the constant for the given class name and value.
|
static ERXConstant.NumberConstant |
constantForClassNamed(Number value,
String clazzName)
Retrieves the constant for the given class name and value.
|
double |
doubleValue()
Number interface implementation, returns the value.
|
boolean |
equals(Object otherObject)
Overridden to compare by value.
|
float |
floatValue()
Number interface implementation, returns the value.
|
int |
hashCode()
Returns the value.
|
int |
intValue()
Number interface implementation, returns the value.
|
long |
longValue()
Number interface implementation, returns the value.
|
String |
name() |
int |
sortOrder()
Returns the sort order of the value.
|
String |
toString() |
String |
userPresentableDescription() |
Number |
value() |
byteValue, shortValue
protected NumberConstant(int value, String name)
value
- public int sortOrder()
sortOrder
in interface ERXConstant.Constant
public final double doubleValue()
doubleValue
in class Number
public final float floatValue()
floatValue
in class Number
public final int intValue()
public final long longValue()
public String name()
name
in interface ERXConstant.Constant
public String userPresentableDescription()
public Number value()
value
in interface ERXConstant.Constant
public final boolean equals(Object otherObject)
public static ERXConstant.NumberConstant constantForClassNamed(int value, String clazzName)
Test.Status
, not Test$Status
.value
- clazzName
- public static ERXConstant.NumberConstant constantForClassNamed(Number value, String clazzName)
value
- clazzName
- Copyright © 2002 – 2020 Project Wonder.