public interface FieldAccessors
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
getAs(Function<Object,T> function) |
default Boolean |
getBoolean()
Read the field.
|
default <T> T |
getBooleanAs(Function<? super Boolean,T> function)
Read the field.
|
default Byte |
getByte()
Read the field.
|
default <T> T |
getByteAs(Function<? super Byte,T> function) |
default Double |
getDouble()
Read the field.
|
default <T> T |
getDoubleAs(Function<? super Double,T> function)
Read the field.
|
default Float |
getFloat()
Read the field.
|
default <T> T |
getFloatAs(Function<? super Float,T> function)
Read the field.
|
default Integer |
getInt()
Read the field.
|
default <T> T |
getIntAs(Function<? super Integer,T> function) |
default Long |
getLong()
Read the field.
|
default <T> T |
getLongAs(Function<? super Long,T> function)
Read the field.
|
Object |
getObject()
Read the field value as raw java object.
|
default Short |
getShort()
Read the field.
|
default <T> T |
getShortAs(Function<? super Short,T> function) |
default String |
getString()
Read the field.
|
default <T> T |
getStringAs(Function<? super String,T> function)
Read the field.
|
Object getObject()
IllegalArgumentException - if the field with the specified name does not exists.default Byte getByte()
IllegalArgumentException - if the field with the specified name does not exists.default Short getShort()
IllegalArgumentException - if the field with the specified name does not exists.default Integer getInt()
IllegalArgumentException - if the field with the specified name does not exists.default Long getLong()
IllegalArgumentException - if the field with the specified name does not exists.default <T> T getLongAs(Function<? super Long,T> function)
IllegalArgumentException - if the field with the specified name does not exists.default Float getFloat()
IllegalArgumentException - if the field with the specified name does not exists.default <T> T getFloatAs(Function<? super Float,T> function)
IllegalArgumentException - if the field with the specified name does not exists.default Double getDouble()
IllegalArgumentException - if the field with the specified name does not exists.default <T> T getDoubleAs(Function<? super Double,T> function)
IllegalArgumentException - if the field with the specified name does not exists.default Boolean getBoolean()
IllegalArgumentException - if the field with the specified name does not exists.default <T> T getBooleanAs(Function<? super Boolean,T> function)
IllegalArgumentException - if the field with the specified name does not exists.default String getString()
IllegalArgumentException - if the field with the specified name does not exists.default <T> T getStringAs(Function<? super String,T> function)
IllegalArgumentException - if the field with the specified name does not exists.Copyright © 2015. All rights reserved.