185186187188189190191192
if (o instanceof Number) return ((Number) o).intValue(); try { return Integer.valueOf(o.toString().trim(), 10); } catch (Exception e) { throw new InvalidConversionException("Could not convert " + o.toString() + " to Integer"); } }
204205206207208209210211
if (o instanceof Number) return ((Number) o).longValue(); try { return Long.valueOf(o.toString().trim(), 10); } catch (Exception e) { throw new InvalidConversionException("Could not convert " + o.toString() + " to Long"); } }
222223224225226227228229
if (o instanceof Number) return ((Number) o).doubleValue(); try { return Double.valueOf(o.toString().trim()); } catch (Exception e) { throw new InvalidConversionException("Could not convert " + o.toString() + " to Double"); } }