org.apache.wiki.htmltowiki
Class PersistentMapDecorator

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.apache.wiki.htmltowiki.PersistentMapDecorator
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class PersistentMapDecorator
extends Properties

Adds the load / save - functionality known from the Properties - class to any Map implementation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PersistentMapDecorator(Map delegate)
          Creates a new decorator for a given map.
 
Method Summary
 void clear()
          
 boolean containsKey(Object key)
          
 boolean containsValue(Object value)
          
 Set entrySet()
          
 boolean equals(Object obj)
          
 Object get(Object key)
          
 int hashCode()
          
 boolean isEmpty()
          
 Set keySet()
          
 Object put(Object arg0, Object arg1)
          
 void putAll(Map arg0)
          
 Object remove(Object key)
          
 int size()
          
 String toString()
          
 Collection values()
          
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clone, contains, elements, keys, rehash
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentMapDecorator

public PersistentMapDecorator(Map delegate)
Creates a new decorator for a given map.

Parameters:
delegate - The map to create a decorator for.
Method Detail

clear

public void clear()

Specified by:
clear in interface Map<Object,Object>
Overrides:
clear in class Hashtable<Object,Object>

containsKey

public boolean containsKey(Object key)

Specified by:
containsKey in interface Map<Object,Object>
Overrides:
containsKey in class Hashtable<Object,Object>

containsValue

public boolean containsValue(Object value)

Specified by:
containsValue in interface Map<Object,Object>
Overrides:
containsValue in class Hashtable<Object,Object>

entrySet

public Set entrySet()

Specified by:
entrySet in interface Map<Object,Object>
Overrides:
entrySet in class Hashtable<Object,Object>

equals

public boolean equals(Object obj)

Specified by:
equals in interface Map<Object,Object>
Overrides:
equals in class Hashtable<Object,Object>

get

public Object get(Object key)

Specified by:
get in interface Map<Object,Object>
Overrides:
get in class Hashtable<Object,Object>

hashCode

public int hashCode()

Specified by:
hashCode in interface Map<Object,Object>
Overrides:
hashCode in class Hashtable<Object,Object>

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface Map<Object,Object>
Overrides:
isEmpty in class Hashtable<Object,Object>

keySet

public Set keySet()

Specified by:
keySet in interface Map<Object,Object>
Overrides:
keySet in class Hashtable<Object,Object>

put

public Object put(Object arg0,
                  Object arg1)

Specified by:
put in interface Map<Object,Object>
Overrides:
put in class Hashtable<Object,Object>

putAll

public void putAll(Map arg0)

Specified by:
putAll in interface Map<Object,Object>
Overrides:
putAll in class Hashtable<Object,Object>

remove

public Object remove(Object key)

Specified by:
remove in interface Map<Object,Object>
Overrides:
remove in class Hashtable<Object,Object>

size

public int size()

Specified by:
size in interface Map<Object,Object>
Overrides:
size in class Hashtable<Object,Object>

toString

public String toString()

Overrides:
toString in class Hashtable<Object,Object>

values

public Collection values()

Specified by:
values in interface Map<Object,Object>
Overrides:
values in class Hashtable<Object,Object>


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.