Class LongAccessor
java.lang.Object
org.tquadrat.foundation.config.spi.prefs.PreferenceAccessor<Long>
org.tquadrat.foundation.config.spi.prefs.LongAccessor
@ClassVersion(sourceVersion="$Id: LongAccessor.java 912 2021-05-06 22:27:04Z tquadrat $")
@API(status=STABLE,
     since="0.0.1")
public final class LongAccessor
extends PreferenceAccessor<Long>
The implementation of
  
PreferenceAccessor
  for instances of
  Long.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: LongAccessor.java 912 2021-05-06 22:27:04Z tquadrat $
- Since:
- 0.0.1
- UML Diagram
- 
    
         UML Diagram for "org.tquadrat.foundation.config.spi.prefs.LongAccessor" 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidreadPreference(Preferences node) Reads the preference value from the given node and writes it to the property.final voidwritePreference(Preferences node) Writes the preference value from the property and writes it to the given node.Methods inherited from class org.tquadrat.foundation.config.spi.prefs.PreferenceAccessorgetPropertyName, getter, hasKey, setter
- 
Constructor Details- 
LongAccessorCreates a newLongAccessorinstance.- Parameters:
- propertyName- The name of the property.
- getter- The property getter.
- setter- The property setter.
 
 
- 
- 
Method Details- 
readPreferencepublic final void readPreference(Preferences node) throws BackingStoreException, InvalidPreferenceValueException Reads the preference value from the given node and writes it to the property.- Specified by:
- readPreferencein class- PreferenceAccessor<Long>
- Parameters:
- node- The preference node.
- Throws:
- BackingStoreException- There are problems on reading the given node.
- InvalidPreferenceValueException- The preferences value cannot be translated to the property type.
 
- 
writePreferenceWrites the preference value from the property and writes it to the given node.- Specified by:
- writePreferencein class- PreferenceAccessor<Long>
- Parameters:
- node- The preference node.
 
 
- 
