...
No Format |
---|
for ( Object o : cs.keySet() ) { String k = (String) o; Class typ = cs.getType(k); if ( typ.toString().equals("double")) == double.class ) { double dblVal = cs.getDouble(k); } else if ( typ.toString().equals("integer")) == int.class ) { int intVal = cs.getIntegergetInt(k); } else if ( typ.toString().equals(" == java.lang.String").class ) { String strVal = cs.getString(k); } } |
Presumably, an algorithm will do something with the value once it is retrieved.