@Override public Object get(int index) { return jsonArray.get(index); }
@Override public Object get(int index) { return jsonArray.get(index); }
public Boolean getBoolean(int index) { Object value = get(index); if (value == null) { return null; } return castToBoolean(value); }
public byte getByteValue(int index) { Object value = get(index); Byte byteVal = castToByte(value); if (byteVal == null) { return 0; } return byteVal.byteValue(); }
public short getShortValue(int index) { Object value = get(index); Short shortVal = castToShort(value); if (shortVal == null) { return 0; } return shortVal.shortValue(); }
public long getLongValue(int index) { Object value = get(index); Long longVal = castToLong(value); if (longVal == null) { return 0L; } return longVal.longValue(); }
public float getFloatValue(int index) { Object value = get(index); Float floatValue = castToFloat(value); if (floatValue == null) { return 0F; } return floatValue.floatValue(); }
public boolean getBooleanValue(int index) { Object value = get(index); if (value == null) { return false; } return castToBoolean(value).booleanValue(); }
public int getIntValue(int index) { Object value = get(index); Integer intVal = castToInt(value); if (intVal == null) { return 0; } return intVal.intValue(); }
public double getDoubleValue(int index) { Object value = get(index); Double doubleValue = castToDouble(value); if (doubleValue == null) { return 0D; } return doubleValue.doubleValue(); }
public BigDecimal getBigDecimal(int index) { Object value = get(index); return castToBigDecimal(value); }
public Short getShort(int index) { Object value = get(index); return castToShort(value); }
public Long getLong(int index) { Object value = get(index); return castToLong(value); }
public BigInteger getBigInteger(int index) { Object value = get(index); return castToBigInteger(value); }
public Integer getInteger(int index) { Object value = get(index); return castToInt(value); }
public java.util.Date getDate(int index) { Object value = get(index); return castToDate(value); }
public Byte getByte(int index) { Object value = get(index); return castToByte(value); }
public java.sql.Timestamp getTimestamp(int index) { Object value = get(index); return castToTimestamp(value); }
public Float getFloat(int index) { Object value = get(index); return castToFloat(value); }
public static String getSynckey(JSONObject obj) { JSONArray obj2 = obj.getJSONArray("List"); StringBuilder sb = new StringBuilder(); for (int i = 0; i < obj2.size(); i++) { JSONObject obj3 = (JSONObject) JSON.toJSON(obj2.get(i)); sb.append(obj3.get("Val") + "|"); } return sb.substring(0, sb.length() - 1); // 656159784|656159911|656159873|1491905341 }