Class PrometheusPreferenceSet.PrometheusByteArrayPreference
java.lang.Object
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisPreferenceItem
io.github.tonywasher.joceanus.prometheus.preference.PrometheusPreferenceSet.PrometheusByteArrayPreference
- Enclosing class:
PrometheusPreferenceSet
public static class PrometheusPreferenceSet.PrometheusByteArrayPreference
extends MetisPreferenceSet.MetisPreferenceItem
ByteArray preference.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getValue()Obtain the value of the preference.voidsetValue(byte[] pNewValue) Set value.protected voidstoreThePreference(Object pNewValue) Store the value of the preference.Methods inherited from class io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisPreferenceItem
getDisplay, getHandle, getKey, getPreferenceName, getSet, getType, isAvailable, isChanged, isHidden, setHidden, setNewValue, setTheValue
-
Constructor Details
-
PrometheusByteArrayPreference
Constructor.- Parameters:
pSet- the preference SetpKey- the key of the preference
-
-
Method Details
-
getValue
public byte[] getValue()Description copied from class:MetisPreferenceSet.MetisPreferenceItemObtain the value of the preference.- Overrides:
getValuein classMetisPreferenceSet.MetisPreferenceItem- Returns:
- the value of the preference
-
setValue
public void setValue(byte[] pNewValue) Set value.- Parameters:
pNewValue- the new value
-
storeThePreference
Description copied from class:MetisPreferenceSet.MetisPreferenceItemStore the value of the preference.- Specified by:
storeThePreferencein classMetisPreferenceSet.MetisPreferenceItem- Parameters:
pNewValue- the new value to store
-