Overview | Package | Class | Use | Tree | Deprecated | Index | Help
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()

  Specified by:
    `clear` in interface `Map`

### containsKey

    public boolean containsKey(Object key)

  Specified by:
    `containsKey` in interface `Map`

### containsValue

    public boolean containsValue(Object val)

  Specified by:
    `containsValue` in interface `Map`

### entrySet

    public Set entrySet()

  Specified by:
    `entrySet` in interface `Map`

### equals

    public boolean equals(Object obj)

  Specified by:
    `equals` in interface `Map`
  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Specified by:
    `hashCode` in interface `Map`
  Overrides:
    `hashCode` in class `Object`

### get

    public Object get(Object key)

  Specified by:
    `get` in interface `Map`

### isEmpty

    public boolean isEmpty()

  Specified by:
    `isEmpty` in interface `Map`

### keySet

    public Set keySet()

  Specified by:
    `keySet` in interface `Map`

### put

    public Object put(Object key,
                      Object val)

  Specified by:
    `put` in interface `Map`

### putAll

    public void putAll(Map t)

  Specified by:
    `putAll` in interface `Map`

### remove

    public Object remove(Object key)

  Specified by:
    `remove` in interface `Map`

### size

    public int size()

  Specified by:
    `size` in interface `Map`

### values

    public Collection values()

  Specified by:
    `values` in interface `Map`

### clone

    public Object clone()

  Overrides:
    `clone` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2001-2012, Terracotta, Inc.