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 |
---|---|
java.lang.Number |
Constants.asNumber(java.lang.String code)
Return a constant value cast to a Number.
|
java.lang.Object |
Constants.asObject(java.lang.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.
|
java.lang.String |
Constants.asString(java.lang.String code)
Return a constant value as a String.
|
java.lang.String |
Constants.toCode(java.lang.Object value,
java.lang.String namePrefix)
Look up the given value within the given group of constants.
|
java.lang.String |
Constants.toCodeForProperty(java.lang.Object value,
java.lang.String propertyName)
Look up the given value within the group of constants for
the given bean property name.
|
java.lang.String |
Constants.toCodeForSuffix(java.lang.Object value,
java.lang.String nameSuffix)
Look up the given value within the given group of constants.
|