org.quartz.utils
Class DirtyFlagMap

java.lang.Object
  extended by org.quartz.utils.DirtyFlagMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
Direct Known Subclasses:
StringKeyDirtyFlagMap

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/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
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.
 
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.
 int hashCode()
           
 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, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map
Overrides:
hashCode in class java.lang.Object

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()
Overrides:
clone in class java.lang.Object


Copyright 2001-2019, Terracotta, Inc.