131132133134135136137138139140141
if (map.containsKey(key)) { Object value = map.get(key); if (value instanceof Integer) return ((Integer)value).intValue(); else throw new XCATTypeMismatchException(Type.Int, TypeUtil.getType(value)); } else { return dflt; } }
150151152153154155156157158159160
if (map.containsKey(key)) { Object value = map.get(key); if (value instanceof Long) return ((Long)value).longValue(); else throw new XCATTypeMismatchException(Type.Long, TypeUtil.getType(value)); } else { return dflt; } }
169170171172173174175176177178179
if (map.containsKey(key)) { Object value = map.get(key); if (value instanceof Float) return ((Float)value).floatValue(); else throw new XCATTypeMismatchException(Type.Float, TypeUtil.getType(value)); } else { return dflt; } }
188189190191192193194195196197198
if (map.containsKey(key)) { Object value = map.get(key); if (value instanceof Double) return ((Double)value).doubleValue(); else throw new XCATTypeMismatchException(Type.Double, TypeUtil.getType(value)); } else { return dflt; } }
243244245246247248249250251252253
if (map.containsKey(key)) { Object value = map.get(key); if (value instanceof String) return (String) value; else throw new XCATTypeMismatchException(Type.String, TypeUtil.getType(value)); } else { return dflt; } }
262263264265266267268269270271272
if (map.containsKey(key)) { Object value = map.get(key); if (value instanceof Boolean) return ((Boolean)value).booleanValue(); else throw new XCATTypeMismatchException(Type.Bool, TypeUtil.getType(value)); } else { return dflt; } }
427428429430431432433434435436
if (map.containsKey(key)) { Object value_ = map.get(key); if (value_ instanceof Integer) map.put(key, new Integer(value)); else throw new XCATTypeMismatchException(TypeUtil.getType(value_), Type.Int); } else map.put(key, new Integer(value)); }
445446447448449450451452453454
if (map.containsKey(key)) { Object value_ = map.get(key); if (value_ instanceof Long) map.put(key, new Long(value)); else throw new XCATTypeMismatchException(TypeUtil.getType(value_), Type.Long); } else map.put(key, new Long(value)); }
463464465466467468469470471472
if (map.containsKey(key)) { Object value_ = map.get(key); if (value_ instanceof Float) map.put(key, new Float(value)); else throw new XCATTypeMismatchException(TypeUtil.getType(value_), Type.Float); } else map.put(key, new Float(value)); }
481482483484485486487488489490
if (map.containsKey(key)) { Object value_ = map.get(key); if (value_ instanceof Double) map.put(key, new Double(value)); else throw new XCATTypeMismatchException(TypeUtil.getType(value_), Type.Double); } else map.put(key, new Double(value)); }