public interface OptionStorage
Modifier and Type | Method and Description |
---|---|
<V> boolean |
consumable(Class<V> valueType)
Checks if the value type can be consumed by an enclosed storage.
|
<V> V |
load(OptionMetadata<V> option)
Loads the value of specified option from an enclosed storage.
|
<V> void |
save(V value,
OptionMetadata<V> option)
Saves the value of specified option to the enclosed storage.
|
<V> boolean consumable(Class<V> valueType)
V
- the value type for the optionvalueType
- the value type to be checked<V> V load(OptionMetadata<V> option)
V
- the value type for the optionoption
- the option metadata, must not be null
.UnsupportedOperationException
- for unsupported option value typesconsumable(Class)
,
OptionMetadata
<V> void save(V value, OptionMetadata<V> option)
V
- the value type for the optionvalue
- to be saved, must not be null
.option
- the option metadata, must not be null
.UnsupportedOperationException
- for unsupported option value typesconsumable(Class)
,
OptionMetadata
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.