/** * Returns the property value as an int. * @param property the property's name * @return the property's value or <code>0</code> if not found * @throws ClassCastException if the property can't be cast to <code>Number</code> */ public int getIntValue(String property) { return getNumberValue(property, new Integer(0)).intValue(); }
/** * Returns the property value as a float. * @param property the property's name * @return the property's value or <code>0</code> if not found * @throws ClassCastException if the property can't be cast to <code>Number</code> */ public float getFloatValue(String property) { return getNumberValue(property, new Float(0f)).floatValue(); }
/** * Returns the property value as a double. * @param property the property's name * @return the property's value or <code>0.0</code> if not found * @throws ClassCastException if the property can't be cast to <code>Number</code> */ public double getDoubleValue(String property) { return getNumberValue(property, new Double(0.)).doubleValue(); }