public interface Claim
| Modifier and Type | Method and Description |
|---|---|
<T> T[] |
asArray(java.lang.Class<T> tClazz)
Get this Claim as an Array of type T.
|
java.lang.Boolean |
asBoolean()
Get this Claim as a Boolean.
|
java.util.Date |
asDate()
Get this Claim as a Date.
|
java.lang.Double |
asDouble()
Get this Claim as a Double.
|
java.lang.Integer |
asInt()
Get this Claim as an Integer.
|
<T> java.util.List<T> |
asList(java.lang.Class<T> tClazz)
Get this Claim as a List of type T.
|
java.lang.Long |
asLong()
Get this Claim as an Long.
|
<T> T |
asObject(java.lang.Class<T> tClazz)
Get this Claim as a Object of type T.
|
java.lang.String |
asString()
Get this Claim as a String.
|
@Nullable java.lang.Boolean asBoolean()
@Nullable java.lang.Integer asInt()
@Nullable java.lang.Long asLong()
@Nullable java.lang.Double asDouble()
@Nullable java.lang.String asString()
@Nullable java.util.Date asDate()
<T> T[] asArray(java.lang.Class<T> tClazz)
throws DecodeException
DecodeException - if the values inside the Array can't be converted to a class T.<T> java.util.List<T> asList(java.lang.Class<T> tClazz)
throws DecodeException
DecodeException - if the values inside the List can't be converted to a class T.@Nullable
<T> T asObject(java.lang.Class<T> tClazz)
throws DecodeException
DecodeException - if the value can't be converted to a class T.