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, shortValueprotected NumberConstant(int value,
String name)
value - public int sortOrder()
sortOrder in interface ERXConstant.Constantpublic final double doubleValue()
doubleValue in class Numberpublic final float floatValue()
floatValue in class Numberpublic final int intValue()
public final long longValue()
public String name()
name in interface ERXConstant.Constantpublic String userPresentableDescription()
public Number value()
value in interface ERXConstant.Constantpublic 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.