public static class ERXConstant.NumberConstant extends java.lang.Number implements ERXConstant.Constant
| Modifier | Constructor and Description |
|---|---|
protected |
NumberConstant(int value,
java.lang.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,
java.lang.String clazzName)
Retrieves the constant for the given class name and value.
|
static ERXConstant.NumberConstant |
constantForClassNamed(java.lang.Number value,
java.lang.String clazzName)
Retrieves the constant for the given class name and value.
|
double |
doubleValue()
Number interface implementation, returns the value.
|
boolean |
equals(java.lang.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.
|
java.lang.String |
name() |
int |
sortOrder()
Returns the sort order of the value.
|
java.lang.String |
toString() |
java.lang.String |
userPresentableDescription() |
java.lang.Number |
value() |
protected NumberConstant(int value,
java.lang.String name)
value - public int sortOrder()
sortOrder in interface ERXConstant.Constantpublic final double doubleValue()
doubleValue in class java.lang.Numberpublic final float floatValue()
floatValue in class java.lang.Numberpublic final int intValue()
intValue in class java.lang.Numberpublic final long longValue()
longValue in class java.lang.Numberpublic final int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String name()
name in interface ERXConstant.Constantpublic java.lang.String userPresentableDescription()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Number value()
value in interface ERXConstant.Constantpublic final boolean equals(java.lang.Object otherObject)
equals in class java.lang.Objectpublic static ERXConstant.NumberConstant constantForClassNamed(int value, java.lang.String clazzName)
Test.Status, not Test$Status.value - clazzName - public static ERXConstant.NumberConstant constantForClassNamed(java.lang.Number value, java.lang.String clazzName)
value - clazzName - Copyright © 2002 – 2022 Project Wonder.