org.quartz.utils
Class DirtyFlagMap

java.lang.Object
  extended byorg.quartz.utils.DirtyFlagMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable
Direct Known Subclasses:
JobDataMap, SchedulerContext

public class DirtyFlagMap
extends java.lang.Object
implements java.util.Map, java.lang.Cloneable, java.io.Serializable

An implementation of Map that wraps another Map and flags itself 'dirty' when it is modified.

Author:
James House
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
DirtyFlagMap()
           Create a DirtyFlagMap that 'wraps' a HashMap.
DirtyFlagMap(int initialCapacity)
           Create a DirtyFlagMap that 'wraps' a HashMap that has the given initial capacity.
DirtyFlagMap(int initialCapacity, float loadFactor)
           Create a DirtyFlagMap that 'wraps' a HashMap that has the given initial capacity and load factor.
DirtyFlagMap(java.util.Map mapToWrap)
           Create a DirtyFlagMap that 'wraps' the given Map.
 
Method Summary
 void clear()
           
 void clearDirtyFlag()
           Clear the 'dirty' flag (set dirty flag to false).
 java.lang.Object clone()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object val)
           
 java.util.Set entrySet()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object get(java.lang.Object key)
           
 java.util.Map getWrappedMap()
           Get a direct handle to the underlying Map.
 boolean isDirty()
           Determine whether the Map is flagged dirty.
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object val)
           
 void putAll(java.util.Map t)
           
 java.lang.Object remove(java.lang.Object key)
           
 int size()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
hashCode
 

Constructor Detail

DirtyFlagMap

public DirtyFlagMap(java.util.Map mapToWrap)

Create a DirtyFlagMap that 'wraps' the given Map.


DirtyFlagMap

public DirtyFlagMap()

Create a DirtyFlagMap that 'wraps' a HashMap.

See Also:
HashMap

DirtyFlagMap

public DirtyFlagMap(int initialCapacity)

Create a DirtyFlagMap that 'wraps' a HashMap that has the given initial capacity.

See Also:
HashMap

DirtyFlagMap

public DirtyFlagMap(int initialCapacity,
                    float loadFactor)

Create a DirtyFlagMap that 'wraps' a HashMap that has the given initial capacity and load factor.

See Also:
HashMap
Method Detail

clearDirtyFlag

public void clearDirtyFlag()

Clear the 'dirty' flag (set dirty flag to false).


isDirty

public boolean isDirty()

Determine whether the Map is flagged dirty.


getWrappedMap

public java.util.Map getWrappedMap()

Get a direct handle to the underlying Map.


clear

public void clear()
Specified by:
clear in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object val)
Specified by:
containsValue in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object val)
Specified by:
put in interface java.util.Map

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map

size

public int size()
Specified by:
size in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

clone

public java.lang.Object clone()

Quartz Project Page