public final class GenericExportedValue<T> extends Object implements ExportedValue
| Constructor and Description |
|---|
GenericExportedValue(String name,
String description,
Supplier<CompositeData> getter,
Consumer<CompositeData> setter,
CompositeType openType) |
GenericExportedValue(String name,
String description,
Supplier<T> getter,
Consumer<T> setter,
Class<T> clasz) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get() |
String |
getDescription() |
String |
getName() |
OpenType |
getValueOpenType() |
Class |
getValueType() |
boolean |
isWriteable() |
void |
set(Object value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoAttributeInfopublic GenericExportedValue(@Nonnull String name, @Nonnull String description, @Nonnull Supplier<T> getter, @Nullable Consumer<T> setter, Class<T> clasz) throws NotSerializableException
NotSerializableExceptionpublic GenericExportedValue(@Nonnull String name, @Nonnull String description, @Nonnull Supplier<CompositeData> getter, @Nullable Consumer<CompositeData> setter, CompositeType openType)
public String getName()
getName in interface ExportedValuepublic String getDescription()
getDescription in interface ExportedValuepublic Object get() throws OpenDataException
get in interface ExportedValueOpenDataExceptionpublic void set(Object value) throws InvalidObjectException
set in interface ExportedValueInvalidObjectExceptionpublic boolean isWriteable()
isWriteable in interface ExportedValuepublic Class getValueType()
getValueType in interface ExportedValuepublic OpenType getValueOpenType()
getValueOpenType in interface ExportedValueCopyright © 2018 SPF4J. All rights reserved.