Class XmlMap
- java.lang.Object
-
- java.util.AbstractMap
-
- com.thoughtworks.xstream.persistence.XmlMap
-
- All Implemented Interfaces:
java.util.Map
public class XmlMap extends java.util.AbstractMapA persistent map. Its values are actually serialized as xml files. If you need an application-wide synchronized version of this map, try the respective Collections methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classXmlMap.XmlMapEntries
-
Field Summary
Fields Modifier and Type Field Description private PersistenceStrategypersistenceStrategy
-
Constructor Summary
Constructors Constructor Description XmlMap(PersistenceStrategy streamStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.SetentrySet()java.lang.Objectget(java.lang.Object key)java.lang.Objectput(java.lang.Object key, java.lang.Object value)java.lang.Objectremove(java.lang.Object key)intsize()-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
-
-
-
-
Field Detail
-
persistenceStrategy
private final PersistenceStrategy persistenceStrategy
-
-
Constructor Detail
-
XmlMap
public XmlMap(PersistenceStrategy streamStrategy)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map- Overrides:
sizein classjava.util.AbstractMap
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map- Overrides:
getin classjava.util.AbstractMap
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
putin interfacejava.util.Map- Overrides:
putin classjava.util.AbstractMap
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Map- Overrides:
removein classjava.util.AbstractMap
-
entrySet
public java.util.Set entrySet()
- Specified by:
entrySetin interfacejava.util.Map- Specified by:
entrySetin classjava.util.AbstractMap
-
-