|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.utils.DirtyFlagMap<K,V>
public class DirtyFlagMap<K,V>
An implementation of Map
that wraps another Map
and flags itself 'dirty' when it is modified.
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<Map.Entry<K,V>> |
entrySet()
|
boolean |
equals(Object obj)
|
V |
get(Object key)
|
Map<K,V> |
getWrappedMap()
Get a direct handle to the underlying Map. |
int |
hashCode()
|
boolean |
isDirty()
Determine whether the Map is flagged dirty. |
boolean |
isEmpty()
|
Set<K> |
keySet()
|
V |
put(K key,
V val)
|
void |
putAll(Map<? extends K,? extends V> t)
|
V |
remove(Object key)
|
int |
size()
|
Collection<V> |
values()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirtyFlagMap()
Create a DirtyFlagMap that 'wraps' a HashMap
.
HashMap
public DirtyFlagMap(int initialCapacity)
Create a DirtyFlagMap that 'wraps' a HashMap
that has the
given initial capacity.
HashMap
public DirtyFlagMap(int initialCapacity, float loadFactor)
Create a DirtyFlagMap that 'wraps' a HashMap
that has the
given initial capacity and load factor.
HashMap
Method Detail |
---|
public void clearDirtyFlag()
Clear the 'dirty' flag (set dirty flag to false
).
public boolean isDirty()
Determine whether the Map
is flagged dirty.
public Map<K,V> getWrappedMap()
Get a direct handle to the underlying Map.
public void clear()
clear
in interface Map<K,V>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object val)
containsValue
in interface Map<K,V>
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
public boolean equals(Object obj)
equals
in interface Map<K,V>
equals
in class Object
public int hashCode()
hashCode
in interface Map<K,V>
hashCode
in class Object
public V get(Object key)
get
in interface Map<K,V>
public boolean isEmpty()
isEmpty
in interface Map<K,V>
public Set<K> keySet()
keySet
in interface Map<K,V>
public V put(K key, V val)
put
in interface Map<K,V>
public void putAll(Map<? extends K,? extends V> t)
putAll
in interface Map<K,V>
public V remove(Object key)
remove
in interface Map<K,V>
public int size()
size
in interface Map<K,V>
public Collection<V> values()
values
in interface Map<K,V>
public Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |