Package | Description |
---|---|
org.springframework.core |
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
|
Modifier and Type | Method and Description |
---|---|
Number |
Constants.asNumber(String code)
Return a constant value cast to a Number.
|
Object |
Constants.asObject(String code)
Parse the given String (upper or lower case accepted) and return
the appropriate value if it's the name of a constant field in the
class that we're analysing.
|
String |
Constants.asString(String code)
Return a constant value as a String.
|
String |
Constants.toCode(Object value,
String namePrefix)
Look up the given value within the given group of constants.
|
String |
Constants.toCodeForProperty(Object value,
String propertyName)
Look up the given value within the group of constants for
the given bean property name.
|
String |
Constants.toCodeForSuffix(Object value,
String nameSuffix)
Look up the given value within the given group of constants.
|