- Type Parameters:
 A- the value type
- All Known Subinterfaces:
 CookieParameter,JWTClaimsSet.Claim,LDAPAttribute,Parameter,SetCookieParameter
Represents a value of a given type that can be converted.
- Since:
 - 1.5
 - Author:
 - Jeremy Kuhn
 
- 
Method Summary
Modifier and TypeMethodDescription<T> TConverts the value to the specified type.<T> TConverts the value to the specified type.<T> T[]Converts the value to an array of the specified type.<T> T[]Converts the value to an array of the specified type.Converts the value to a big decimal.Converts the value to a big integer.Converts the value to a boolean.asByte()Converts the value to a byte.Converts the value to a character.Class<?> asClass()Converts the value to a class.Converts the value to a currency.asDouble()Converts the value to a double.asFile()Converts the value to a file.asFloat()Converts the value to a float.Converts the value to an inet address.Converts the value to an integer.<T> List<T> Converts the value to a list of the specified type.<T> List<T> Converts the value to a list of the specified type.Converts the value to a local date.Converts the value to a local date time.asLocale()Converts the value to a locale.asLong()Converts the value to a long.asPath()Converts the value to a path.Converts the value to a pattern.<T> Set<T> Converts the value to a set of the specified type.<T> Set<T> Converts the value to a set of the specified type.asShort()Converts the value to a short.asString()Converts the value to a string.asURI()Converts the value to a URI.asURL()Converts the value to a URL.Converts the value to a zoned date time.getName()Returns the name.getValue()Returns the raw value. 
- 
Method Details
- 
getName
String getName()Returns the name.
- Returns:
 - a name
 
 - 
getValue
A getValue()Returns the raw value.
- Returns:
 - a raw value
 
 - 
as
Converts the value to the specified type.
- Type Parameters:
 T- the target type- Parameters:
 type- a class of type T- Returns:
 - the converted value or null
 
 - 
as
Converts the value to the specified type.
- Type Parameters:
 T- the target type- Parameters:
 type- the target type- Returns:
 - the converted value or null
 
 - 
asArrayOf
Converts the value to an array of the specified type.
- Type Parameters:
 T- the target component type- Parameters:
 type- a class of type T- Returns:
 - the value converted to an array of T or null
 
 - 
asArrayOf
Converts the value to an array of the specified type.
- Type Parameters:
 T- the target component type- Parameters:
 type- the target component type- Returns:
 - the value converted to an array of T or null
 
 - 
asListOf
Converts the value to a list of the specified type.
- Type Parameters:
 T- the target list argument type- Parameters:
 type- a class of type T- Returns:
 - the value converted to a list of T or null
 
 - 
asListOf
Converts the value to a list of the specified type.
- Type Parameters:
 T- the target list argument type- Parameters:
 type- the target list argument type- Returns:
 - the value converted to a list of T or null
 
 - 
asSetOf
Converts the value to a set of the specified type.
- Type Parameters:
 T- the target set argument type- Parameters:
 type- a class of type T- Returns:
 - the value converted to a set of T or null
 
 - 
asSetOf
Converts the value to a set of the specified type.
- Type Parameters:
 T- the target set argument type- Parameters:
 type- the target set argument type- Returns:
 - the value converted to a set of T or null
 
 - 
asByte
Byte asByte()Converts the value to a byte.
- Returns:
 - the converted value or null
 
 - 
asShort
Short asShort()Converts the value to a short.
- Returns:
 - the converted value or null
 
 - 
asInteger
Integer asInteger()Converts the value to an integer.
- Returns:
 - the converted value or null
 
 - 
asLong
Long asLong()Converts the value to a long.
- Returns:
 - the converted value or null
 
 - 
asFloat
Float asFloat()Converts the value to a float.
- Returns:
 - the converted value or null
 
 - 
asDouble
Double asDouble()Converts the value to a double.
- Returns:
 - the converted value or null
 
 - 
asCharacter
Character asCharacter()Converts the value to a character.
- Returns:
 - the converted value or null
 
 - 
asString
String asString()Converts the value to a string.
- Returns:
 - the converted value or null
 
 - 
asBoolean
Boolean asBoolean()Converts the value to a boolean.
- Returns:
 - the converted value or null
 
 - 
asBigInteger
BigInteger asBigInteger()Converts the value to a big integer.
- Returns:
 - the converted value or null
 
 - 
asBigDecimal
BigDecimal asBigDecimal()Converts the value to a big decimal.
- Returns:
 - the converted value or null
 
 - 
asLocalDate
LocalDate asLocalDate()Converts the value to a local date.
- Returns:
 - the converted value or null
 
 - 
asLocalDateTime
LocalDateTime asLocalDateTime()Converts the value to a local date time.
- Returns:
 - the converted value or null
 
 - 
asZonedDateTime
ZonedDateTime asZonedDateTime()Converts the value to a zoned date time.
- Returns:
 - the converted value or null
 
 - 
asCurrency
Currency asCurrency()Converts the value to a currency.
- Returns:
 - the converted value or null
 
 - 
asLocale
Locale asLocale()Converts the value to a locale.
- Returns:
 - the converted value or null
 
 - 
asFile
File asFile()Converts the value to a file.
- Returns:
 - the converted value or null
 
 - 
asPath
Path asPath()Converts the value to a path.
- Returns:
 - the converted value or null
 
 - 
asURI
URI asURI()Converts the value to a URI.
- Returns:
 - the converted value or null
 
 - 
asURL
URL asURL()Converts the value to a URL.
- Returns:
 - the converted value or null
 
 - 
asPattern
Pattern asPattern()Converts the value to a pattern.
- Returns:
 - the converted value or null
 
 - 
asInetAddress
InetAddress asInetAddress()Converts the value to an inet address.
- Returns:
 - the converted value or null
 
 - 
asClass
Class<?> asClass()Converts the value to a class.
- Returns:
 - the converted value or null
 
 
 -