public interface CollectionEntryValueConverter extends IndexedValueConverter<CollectionEntry>
ServiceLoader
in TypedAccess.get(String, Class, Object)| Modifier and Type | Method and Description |
|---|---|
default <T> void |
setValue(CollectionEntry obj,
int index,
T newValue)
Implement this method to write a value to the object
|
default <T> void |
setValue(CollectionEntry obj,
String itemName,
T newValue)
Implement this method to write a value to the object
|
default boolean |
supportsWrite(Class<?> valueType,
Object value)
Return
true here for all value types that
the implementation class supports to write object
data. |
getValue, getValueAsListgetPriority, getValue, getValueAsList, supportsReaddefault boolean supportsWrite(Class<?> valueType, Object value)
ValueConvertertrue here for all value types that
the implementation class supports to write object
data.supportsWrite in interface ValueConverter<CollectionEntry>valueType - requested return value typevalue - the requested value to write (may be null)default <T> void setValue(CollectionEntry obj, String itemName, T newValue)
ValueConvertersetValue in interface ValueConverter<CollectionEntry>T - value typeobj - objectitemName - name of item to writenewValue - new valuedefault <T> void setValue(CollectionEntry obj, int index, T newValue)
IndexedValueConvertersetValue in interface IndexedValueConverter<CollectionEntry>T - value typeobj - objectindex - the index of the item to writenewValue - new valueCopyright © 2019–2021 HCL. All rights reserved.