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, put
public static final PresetPrefHelper INSTANCE
public PresetPrefHelper()
PresetPrefHelper
.public java.util.Collection<ExtendedSourceEntry> getDefault()
SourcePrefHelper
getDefault
in class SourcePrefHelper
public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
SourcePrefHelper
serialize
in class SourcePrefHelper
entry
- source entry to serializepublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
SourcePrefHelper
deserialize
in class SourcePrefHelper
s
- map (key=value)