public interface IndexedFields
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getAs(int fieldIndex,
Function<Object,T> function)
Read the field at the specified index.
|
default Boolean |
getBoolean(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getBooleanAs(int fieldIndex,
Function<? super Boolean,T> function)
Read the field at the specified index.
|
default Byte |
getByte(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getByteAs(int fieldIndex,
Function<? super Byte,T> function)
Read the field at the specified index.
|
default Double |
getDouble(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getDoubleAs(int fieldIndex,
Function<? super Double,T> function)
Read the field at the specified index.
|
default Float |
getFloat(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getFloatAs(int fieldIndex,
Function<? super Float,T> function)
Read the field at the specified index.
|
default Integer |
getInt(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getIntAs(int fieldIndex,
Function<? super Integer,T> function)
Read the field at the specified index.
|
default Long |
getLong(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getLongAs(int fieldIndex,
Function<? super Long,T> function)
Read the field at the specified index.
|
default Short |
getShort(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getShortAs(int fieldIndex,
Function<? super Short,T> function)
Read the field at the specified index.
|
default String |
getString(int fieldIndex)
Read the field at the specified index.
|
default <T> T |
getStringAs(int fieldIndex,
Function<? super String,T> function)
Read the field at the specified index.
|
Object get(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getAs(int fieldIndex,
Function<Object,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Byte getByte(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getByteAs(int fieldIndex,
Function<? super Byte,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Short getShort(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getShortAs(int fieldIndex,
Function<? super Short,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Integer getInt(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getIntAs(int fieldIndex,
Function<? super Integer,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Long getLong(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getLongAs(int fieldIndex,
Function<? super Long,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Float getFloat(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getFloatAs(int fieldIndex,
Function<? super Float,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Double getDouble(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getDoubleAs(int fieldIndex,
Function<? super Double,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default Boolean getBoolean(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getBooleanAs(int fieldIndex,
Function<? super Boolean,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default String getString(int fieldIndex)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.default <T> T getStringAs(int fieldIndex,
Function<? super String,T> function)
fieldIndex - 0-based field index.IndexOutOfBoundsException - if the index is out of bound.Copyright © 2014. All rights reserved.