public class PresetPrefHelper extends SourcePrefHelper
| Modifier and Type | Field and Description |
|---|---|
static PresetPrefHelper |
INSTANCE
The unique instance.
|
type| Constructor and Description |
|---|
PresetPrefHelper()
Constructs a new
PresetPrefHelper. |
| Modifier and Type | Method and Description |
|---|---|
SourceEntry |
deserialize(java.util.Map<java.lang.String,java.lang.String> s)
Deserializes the given map as a source entry.
|
java.util.Collection<ExtendedSourceEntry> |
getDefault()
Returns the default sources provided by JOSM core.
|
java.util.Map<java.lang.String,java.lang.String> |
serialize(SourceEntry entry)
Serializes the given source entry as a map.
|
get, getActiveUrls, putpublic static final PresetPrefHelper INSTANCE
public PresetPrefHelper()
PresetPrefHelper.public java.util.Collection<ExtendedSourceEntry> getDefault()
SourcePrefHelpergetDefault in class SourcePrefHelperpublic java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
SourcePrefHelperserialize in class SourcePrefHelperentry - source entry to serializepublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
SourcePrefHelperdeserialize in class SourcePrefHelpers - map (key=value)