|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.utils.DirtyFlagMap org.quartz.utils.StringKeyDirtyFlagMap
public class StringKeyDirtyFlagMap
An implementation of Map
that wraps another Map
and flags itself 'dirty' when it is modified, enforces that all keys are
Strings.
All allowsTransientData flag related methods are deprecated as of version 1.6.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
StringKeyDirtyFlagMap()
|
|
StringKeyDirtyFlagMap(int initialCapacity)
|
|
StringKeyDirtyFlagMap(int initialCapacity,
float loadFactor)
|
Method Summary | |
---|---|
boolean |
containsTransientData()
Deprecated. JDBCJobStores no longer prune out transient data. If you include non-Serializable values in the Map, you will now get an exception when attempting to store it in a database. |
boolean |
equals(java.lang.Object obj)
|
boolean |
getAllowsTransientData()
Deprecated. JDBCJobStores no longer prune out transient data. If you include non-Serializable values in the Map, you will now get an exception when attempting to store it in a database. |
boolean |
getBoolean(java.lang.String key)
Retrieve the identified boolean value from the StringKeyDirtyFlagMap . |
char |
getChar(java.lang.String key)
Retrieve the identified char value from the StringKeyDirtyFlagMap . |
double |
getDouble(java.lang.String key)
Retrieve the identified double value from the StringKeyDirtyFlagMap . |
float |
getFloat(java.lang.String key)
Retrieve the identified float value from the StringKeyDirtyFlagMap . |
int |
getInt(java.lang.String key)
Retrieve the identified int value from the StringKeyDirtyFlagMap . |
java.lang.String[] |
getKeys()
Get a copy of the Map's String keys in an array of Strings. |
long |
getLong(java.lang.String key)
Retrieve the identified long value from the StringKeyDirtyFlagMap . |
java.lang.String |
getString(java.lang.String key)
Retrieve the identified String value from the StringKeyDirtyFlagMap . |
int |
hashCode()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds the given Object value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
boolean value)
Adds the given boolean value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
char value)
Adds the given char value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
double value)
Adds the given double value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
float value)
Adds the given float value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
int value)
Adds the given int value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
long value)
Adds the given long value to the StringKeyDirtyFlagMap . |
void |
put(java.lang.String key,
java.lang.String value)
Adds the given String value to the StringKeyDirtyFlagMap . |
void |
putAll(java.util.Map map)
Adds the name-value pairs in the given Map to the
StringKeyDirtyFlagMap . |
void |
removeTransientData()
Deprecated. JDBCJobStores no longer prune out transient data. If you include non-Serializable values in the Map, you will now get an exception when attempting to store it in a database. |
void |
setAllowsTransientData(boolean allowsTransientData)
Deprecated. JDBCJobStores no longer prune out transient data. If you include non-Serializable values in the Map, you will now get an exception when attempting to store it in a database. |
Methods inherited from class org.quartz.utils.DirtyFlagMap |
---|
clear, clearDirtyFlag, clone, containsKey, containsValue, entrySet, get, getWrappedMap, isDirty, isEmpty, keySet, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringKeyDirtyFlagMap()
public StringKeyDirtyFlagMap(int initialCapacity)
public StringKeyDirtyFlagMap(int initialCapacity, float loadFactor)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Map
equals
in class DirtyFlagMap
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class DirtyFlagMap
public java.lang.String[] getKeys()
public void setAllowsTransientData(boolean allowsTransientData)
StringKeyDirtyFlagMap
that it should
allow non-Serializable
values. Enforces that the Map
doesn't already include transient data.
public boolean getAllowsTransientData()
StringKeyDirtyFlagMap
allows
non-Serializable
values.
public boolean containsTransientData()
Serializable
. Always returns false if this Map
is flagged to not allow transient data.
public void removeTransientData()
public void putAll(java.util.Map map)
Adds the name-value pairs in the given Map
to the
StringKeyDirtyFlagMap
.
All keys must be String
s.
putAll
in interface java.util.Map
putAll
in class DirtyFlagMap
public void put(java.lang.String key, int value)
Adds the given int
value to the StringKeyDirtyFlagMap
.
public void put(java.lang.String key, long value)
Adds the given long
value to the StringKeyDirtyFlagMap
.
public void put(java.lang.String key, float value)
Adds the given float
value to the StringKeyDirtyFlagMap
.
public void put(java.lang.String key, double value)
Adds the given double
value to the StringKeyDirtyFlagMap
.
public void put(java.lang.String key, boolean value)
Adds the given boolean
value to the StringKeyDirtyFlagMap
.
public void put(java.lang.String key, char value)
Adds the given char
value to the StringKeyDirtyFlagMap
.
public void put(java.lang.String key, java.lang.String value)
Adds the given String
value to the StringKeyDirtyFlagMap
.
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
Adds the given Object
value to the StringKeyDirtyFlagMap
.
put
in interface java.util.Map
put
in class DirtyFlagMap
public int getInt(java.lang.String key)
Retrieve the identified int
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not an Integer.public long getLong(java.lang.String key)
Retrieve the identified long
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not a Long.public float getFloat(java.lang.String key)
Retrieve the identified float
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not a Float.public double getDouble(java.lang.String key)
Retrieve the identified double
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not a Double.public boolean getBoolean(java.lang.String key)
Retrieve the identified boolean
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not a Boolean.public char getChar(java.lang.String key)
Retrieve the identified char
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not a Character.public java.lang.String getString(java.lang.String key)
Retrieve the identified String
value from the StringKeyDirtyFlagMap
.
java.lang.ClassCastException
- if the identified object is not a String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |