/** * <p> * Retrieve the identified <code>String</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a String. */ public String getString(String key) { Object obj = get(key); try { return (String) obj; } catch (Exception e) { throw new ClassCastException("Identified object is not a String."); } } }
/** * <p> * Retrieve the identified <code>String</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a String. */ public String getString(String key) { Object obj = get(key); try { return (String) obj; } catch (Exception e) { throw new ClassCastException("Identified object is not a String."); } } }
/** * <p> * Retrieve the identified <code>int</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not an Integer. */ public int getInt(String key) { Object obj = get(key); try { if(obj instanceof Integer) return ((Integer) obj).intValue(); return Integer.parseInt((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not an Integer."); } }
/** * <p> * Retrieve the identified <code>double</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Double. */ public double getDouble(String key) { Object obj = get(key); try { if(obj instanceof Double) return ((Double) obj).doubleValue(); return Double.parseDouble((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Double."); } }
/** * <p> * Retrieve the identified <code>long</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Long. */ public long getLong(String key) { Object obj = get(key); try { if(obj instanceof Long) return ((Long) obj).longValue(); return Long.parseLong((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Long."); } }
/** * <p> * Retrieve the identified <code>int</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not an Integer. */ public int getInt(String key) { Object obj = get(key); try { if(obj instanceof Integer) return ((Integer) obj).intValue(); return Integer.parseInt((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not an Integer."); } }
/** * <p> * Retrieve the identified <code>long</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Long. */ public long getLong(String key) { Object obj = get(key); try { if(obj instanceof Long) return ((Long) obj).longValue(); return Long.parseLong((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Long."); } }
/** * <p> * Retrieve the identified <code>float</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Float. */ public float getFloat(String key) { Object obj = get(key); try { if(obj instanceof Float) return ((Float) obj).floatValue(); return Float.parseFloat((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Float."); } }
/** * <p> * Retrieve the identified <code>boolean</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Boolean. */ public boolean getBoolean(String key) { Object obj = get(key); try { if(obj instanceof Boolean) return ((Boolean) obj).booleanValue(); return Boolean.parseBoolean((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Boolean."); } }
/** * <p> * Retrieve the identified <code>double</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Double. */ public double getDouble(String key) { Object obj = get(key); try { if(obj instanceof Double) return ((Double) obj).doubleValue(); return Double.parseDouble((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Double."); } }
/** * <p> * Retrieve the identified <code>float</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Float. */ public float getFloat(String key) { Object obj = get(key); try { if(obj instanceof Float) return ((Float) obj).floatValue(); return Float.parseFloat((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Float."); } }
/** * <p> * Retrieve the identified <code>boolean</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Boolean. */ public boolean getBoolean(String key) { Object obj = get(key); try { if(obj instanceof Boolean) return ((Boolean) obj).booleanValue(); return Boolean.parseBoolean((String)obj); } catch (Exception e) { throw new ClassCastException("Identified object is not a Boolean."); } }
/** * <p> * Retrieve the identified <code>char</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Character. */ public char getChar(String key) { Object obj = get(key); try { if(obj instanceof Character) return ((Character) obj).charValue(); return ((String)obj).charAt(0); } catch (Exception e) { throw new ClassCastException("Identified object is not a Character."); } }
/** * <p> * Retrieve the identified <code>char</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Character. */ public char getChar(String key) { Object obj = get(key); try { if(obj instanceof Character) return ((Character) obj).charValue(); return ((String)obj).charAt(0); } catch (Exception e) { throw new ClassCastException("Identified object is not a Character."); } }
/** * <p> * Retrieve the identified <code>double</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Double. */ public double getDouble(String key) { Object obj = get(key); try { return ((Double) obj).doubleValue(); } catch (Exception e) { throw new ClassCastException("Identified object is not a Double."); } }
/** * <p> * Retrieve the identified <code>boolean</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Boolean. */ public boolean getBoolean(String key) { Object obj = get(key); try { return ((Boolean) obj).booleanValue(); } catch (Exception e) { throw new ClassCastException("Identified object is not a Boolean."); } }
/** * <p> * Retrieve the identified <code>float</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Float. */ public float getFloat(String key) { Object obj = get(key); try { return ((Float) obj).floatValue(); } catch (Exception e) { throw new ClassCastException("Identified object is not a Float."); } }
/** * <p> * Retrieve the identified <code>int</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not an Integer. */ public int getInt(String key) { Object obj = get(key); try { return ((Integer) obj).intValue(); } catch (Exception e) { throw new ClassCastException("Identified object is not an Integer."); } }
/** * <p> * Retrieve the identified <code>long</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Long. */ public long getLong(String key) { Object obj = get(key); try { return ((Long) obj).longValue(); } catch (Exception e) { throw new ClassCastException("Identified object is not a Long."); } }
/** * <p> * Retrieve the identified <code>char</code> value from the <code>StringKeyDirtyFlagMap</code>. * </p> * * @throws ClassCastException * if the identified object is not a Character. */ public char getChar(String key) { Object obj = get(key); try { return ((Character) obj).charValue(); } catch (Exception e) { throw new ClassCastException("Identified object is not a Character."); } }