|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.quartz.utils Class DirtyFlagMap
java.lang.Object org.quartz.utils.DirtyFlagMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map
- Direct Known Subclasses:
- StringKeyDirtyFlagMap
public class DirtyFlagMap
- extends Object
- implements Map, Cloneable, 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 |
---|
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 ). |
Object |
clone()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object val)
|
Set |
entrySet()
|
boolean |
equals(Object obj)
|
Object |
get(Object key)
|
Map |
getWrappedMap()
Get a direct handle to the underlying Map. |
int |
hashCode()
|
boolean |
isDirty()
Determine whether the Map is flagged dirty. |
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object key,
Object val)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
int |
size()
|
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 Map getWrappedMap()
Get a direct handle to the underlying Map.
clear
public void clear()
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap
containsValue
public boolean containsValue(Object val)
- Specified by:
containsValue
in interfaceMap
entrySet
public Set entrySet()
equals
public boolean equals(Object obj)
hashCode
public int hashCode()
get
public Object get(Object key)
isEmpty
public boolean isEmpty()
keySet
public Set keySet()
put
public Object put(Object key, Object val)
putAll
public void putAll(Map t)
remove
public Object remove(Object key)
size
public int size()
values
public Collection values()
clone
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2001-2011, Terracotta, Inc.