OBJ - type of object containing the datapublic interface IndexedValueConverter<OBJ> extends ValueConverter<OBJ>
ValueConverter provides access to indexed data
from a source.| Modifier and Type | Method and Description |
|---|---|
<T> T |
getValue(OBJ obj,
int index,
Class<T> valueType,
T defaultValue)
Implement this method to return the converted value type.
Will only be invoked if ValueConverter.supportsRead(Class) returns
true. |
<T> List<T> |
getValueAsList(OBJ obj,
int index,
Class<T> valueType,
List<T> defaultValue)
Implement this method to return a list of the converted value type.
Will only be invoked if ValueConverter.supportsRead(Class) returns
true. |
<T> void |
setValue(OBJ obj,
int index,
T newValue)
Implement this method to write a value to the object
|
getPriority, getValue, getValueAsList, setValue, supportsRead, supportsWrite<T> T getValue(OBJ obj, int index, Class<T> valueType, T defaultValue)
ValueConverter.supportsRead(Class) returns
true.T - value typeobj - objectindex - the index of the item to readvalueType - requested return value typedefaultValue - default value to return if object property is not set<T> List<T> getValueAsList(OBJ obj, int index, Class<T> valueType, List<T> defaultValue)
ValueConverter.supportsRead(Class) returns
true.T - value typeobj - objectindex - the index of the item to readvalueType - requested return value typedefaultValue - default value to return if object property is not set<T> void setValue(OBJ obj, int index, T newValue)
T - value typeobj - objectindex - the index of the item to writenewValue - new valueCopyright © 2019–2021 HCL. All rights reserved.