F - type which needs to be adaptedT - type which goes into the preferencespublic interface StoreBoxTypeAdapter<F,T>
F to T,
which can be natively stored in the preferences.
This interface should not be implemented directly, but instead one of the
following classes should be extended to provide an adapter implementation
for storing F:
BaseBooleanTypeAdapter
as a BooleanBaseFloatTypeAdapter
as a FloatBaseIntegerTypeAdapter
as an IntegerBaseLongTypeAdapter
as a LongBaseStringTypeAdapter
as a StringBaseStringSetTypeAdapter
as a Set of StringsTypeAdapter| Modifier and Type | Method and Description |
|---|---|
T |
adaptForPreferences(F value) |
F |
adaptFromPreferences(T value) |
T |
getDefaultValue() |
StoreType |
getStoreType() |