org.openstreetmap.josm.data
Interface Preferences.Setting<T>

Type Parameters:
T - the data type for the value
All Known Implementing Classes:
Preferences.AbstractSetting, Preferences.ListListSetting, Preferences.ListSetting, Preferences.MapListSetting, Preferences.StringSetting
Enclosing class:
Preferences

public static interface Preferences.Setting<T>

Interface for a preference value


Method Summary
 Preferences.Setting<T> getNullInstance()
          Returns a setting whose value is null.
 T getValue()
          Returns the value of this setting.
 void visit(Preferences.SettingVisitor visitor)
          Enable usage of the visitor pattern.
 

Method Detail

getValue

T getValue()
Returns the value of this setting.

Returns:
the value of this setting

visit

void visit(Preferences.SettingVisitor visitor)
Enable usage of the visitor pattern.

Parameters:
visitor - the visitor

getNullInstance

Preferences.Setting<T> getNullInstance()
Returns a setting whose value is null. Cannot be static, because there is no static inheritance.

Returns:
a Setting object that isn't null itself, but returns null for getValue()


JOSM