public interface NamedFields
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String fieldName)
Read the field having the specified name.
|
default <T> T |
getAs(String fieldName,
Function<Object,T> function) |
default Boolean |
getBoolean(String fieldName)
Read the field having the specified name.
|
default <T> T |
getBooleanAs(String fieldName,
Function<? super Boolean,T> function)
Read the field having the specified name.
|
default Byte |
getByte(String fieldName)
Read the field having the specified name.
|
default <T> T |
getByteAs(String fieldName,
Function<? super Byte,T> function) |
default Double |
getDouble(String fieldName)
Read the field having the specified name.
|
default <T> T |
getDoubleAs(String fieldName,
Function<? super Double,T> function)
Read the field having the specified name.
|
default Float |
getFloat(String fieldName)
Read the field having the specified name.
|
default <T> T |
getFloatAs(String fieldName,
Function<? super Float,T> function)
Read the field having the specified name.
|
default Integer |
getInt(String fieldName)
Read the field having the specified name.
|
default <T> T |
getIntAs(String fieldName,
Function<? super Integer,T> function) |
default Long |
getLong(String fieldName)
Read the field having the specified name.
|
default <T> T |
getLongAs(String fieldName,
Function<? super Long,T> function)
Read the field having the specified name.
|
default Short |
getShort(String fieldName)
Read the field having the specified name.
|
default <T> T |
getShortAs(String fieldName,
Function<? super Short,T> function) |
default String |
getString(String fieldName)
Read the field having the specified name.
|
default <T> T |
getStringAs(String fieldName,
Function<? super String,T> function)
Read the field having the specified name.
|
Object get(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Byte getByte(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Short getShort(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Integer getInt(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Long getLong(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default <T> T getLongAs(String fieldName, Function<? super Long,T> function)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Float getFloat(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default <T> T getFloatAs(String fieldName, Function<? super Float,T> function)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Double getDouble(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default <T> T getDoubleAs(String fieldName, Function<? super Double,T> function)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default Boolean getBoolean(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default <T> T getBooleanAs(String fieldName, Function<? super Boolean,T> function)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default String getString(String fieldName)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.default <T> T getStringAs(String fieldName, Function<? super String,T> function)
fieldName - The field name, non-null.IllegalArgumentException - if the field with the specified name does not exists.Copyright © 2014. All rights reserved.