Class StringKeyDirtyFlagMap
- java.lang.Object
-
- org.quartz.utils.DirtyFlagMap<java.lang.String,java.lang.Object>
-
- org.quartz.utils.StringKeyDirtyFlagMap
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
- Direct Known Subclasses:
JobDataMap,SchedulerContext
public class StringKeyDirtyFlagMap extends DirtyFlagMap<java.lang.String,java.lang.Object>
An implementation of
Mapthat wraps anotherMapand 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringKeyDirtyFlagMap()StringKeyDirtyFlagMap(int initialCapacity)StringKeyDirtyFlagMap(int initialCapacity, float loadFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsTransientData()Deprecated.JDBCJobStores no longer prune out transient data.booleanequals(java.lang.Object obj)booleangetAllowsTransientData()Deprecated.JDBCJobStores no longer prune out transient data.booleangetBoolean(java.lang.String key)Retrieve the identifiedbooleanvalue from theStringKeyDirtyFlagMap.chargetChar(java.lang.String key)Retrieve the identifiedcharvalue from theStringKeyDirtyFlagMap.doublegetDouble(java.lang.String key)Retrieve the identifieddoublevalue from theStringKeyDirtyFlagMap.floatgetFloat(java.lang.String key)Retrieve the identifiedfloatvalue from theStringKeyDirtyFlagMap.intgetInt(java.lang.String key)Retrieve the identifiedintvalue from theStringKeyDirtyFlagMap.java.lang.String[]getKeys()Get a copy of the Map's String keys in an array of Strings.longgetLong(java.lang.String key)Retrieve the identifiedlongvalue from theStringKeyDirtyFlagMap.java.lang.StringgetString(java.lang.String key)Retrieve the identifiedStringvalue from theStringKeyDirtyFlagMap.inthashCode()voidput(java.lang.String key, boolean value)Adds the givenbooleanvalue to theStringKeyDirtyFlagMap.voidput(java.lang.String key, char value)Adds the givencharvalue to theStringKeyDirtyFlagMap.voidput(java.lang.String key, double value)Adds the givendoublevalue to theStringKeyDirtyFlagMap.voidput(java.lang.String key, float value)Adds the givenfloatvalue to theStringKeyDirtyFlagMap.voidput(java.lang.String key, int value)Adds the givenintvalue to theStringKeyDirtyFlagMap.voidput(java.lang.String key, long value)Adds the givenlongvalue to theStringKeyDirtyFlagMap.java.lang.Objectput(java.lang.String key, java.lang.Object value)Adds the givenObjectvalue to theStringKeyDirtyFlagMap.voidput(java.lang.String key, java.lang.String value)Adds the givenStringvalue to theStringKeyDirtyFlagMap.voidremoveTransientData()Deprecated.JDBCJobStores no longer prune out transient data.voidsetAllowsTransientData(boolean allowsTransientData)Deprecated.JDBCJobStores no longer prune out transient data.-
Methods inherited from class org.quartz.utils.DirtyFlagMap
clear, clearDirtyFlag, clone, containsKey, containsValue, entrySet, get, getWrappedMap, isDirty, isEmpty, keySet, putAll, remove, size, values
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Map<java.lang.String,java.lang.Object>- Overrides:
equalsin classDirtyFlagMap<java.lang.String,java.lang.Object>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map<java.lang.String,java.lang.Object>- Overrides:
hashCodein classDirtyFlagMap<java.lang.String,java.lang.Object>
-
getKeys
public java.lang.String[] getKeys()
Get a copy of the Map's String keys in an array of Strings.
-
setAllowsTransientData
@Deprecated public 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.Tell theStringKeyDirtyFlagMapthat it should allow non-Serializablevalues. Enforces that the Map doesn't already include transient data.
-
getAllowsTransientData
@Deprecated public 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.Whether theStringKeyDirtyFlagMapallows non-Serializablevalues.
-
containsTransientData
@Deprecated public 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.Determine whether any values in this Map do not implementSerializable. Always returns false if this Map is flagged to not allow transient data.
-
removeTransientData
@Deprecated public 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.Removes any data values in the map that are non-Serializable. Does nothing if this Map does not allow transient data.
-
put
public void put(java.lang.String key, int value)Adds the given
intvalue to theStringKeyDirtyFlagMap.
-
put
public void put(java.lang.String key, long value)Adds the given
longvalue to theStringKeyDirtyFlagMap.
-
put
public void put(java.lang.String key, float value)Adds the given
floatvalue to theStringKeyDirtyFlagMap.
-
put
public void put(java.lang.String key, double value)Adds the given
doublevalue to theStringKeyDirtyFlagMap.
-
put
public void put(java.lang.String key, boolean value)Adds the given
booleanvalue to theStringKeyDirtyFlagMap.
-
put
public void put(java.lang.String key, char value)Adds the given
charvalue to theStringKeyDirtyFlagMap.
-
put
public void put(java.lang.String key, java.lang.String value)Adds the given
Stringvalue to theStringKeyDirtyFlagMap.
-
put
public java.lang.Object put(java.lang.String key, java.lang.Object value)Adds the given
Objectvalue to theStringKeyDirtyFlagMap.- Specified by:
putin interfacejava.util.Map<java.lang.String,java.lang.Object>- Overrides:
putin classDirtyFlagMap<java.lang.String,java.lang.Object>
-
getInt
public int getInt(java.lang.String key)
Retrieve the identified
intvalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not an Integer.
-
getLong
public long getLong(java.lang.String key)
Retrieve the identified
longvalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not a Long.
-
getFloat
public float getFloat(java.lang.String key)
Retrieve the identified
floatvalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not a Float.
-
getDouble
public double getDouble(java.lang.String key)
Retrieve the identified
doublevalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not a Double.
-
getBoolean
public boolean getBoolean(java.lang.String key)
Retrieve the identified
booleanvalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not a Boolean.
-
getChar
public char getChar(java.lang.String key)
Retrieve the identified
charvalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not a Character.
-
getString
public java.lang.String getString(java.lang.String key)
Retrieve the identified
Stringvalue from theStringKeyDirtyFlagMap.- Throws:
java.lang.ClassCastException- if the identified object is not a String.
-
-