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, getValueAsList
getPriority, getValue, getValueAsList, supportsRead
default boolean supportsWrite(Class<?> valueType, Object value)
ValueConverter
true
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)
ValueConverter
setValue
in interface ValueConverter<CollectionEntry>
T
- value typeobj
- objectitemName
- name of item to writenewValue
- new valuedefault <T> void setValue(CollectionEntry obj, int index, T newValue)
IndexedValueConverter
setValue
in interface IndexedValueConverter<CollectionEntry>
T
- value typeobj
- objectindex
- the index of the item to writenewValue
- new valueCopyright © 2019–2021 HCL. All rights reserved.