@Override protected void setArray(Object array, int pos, Object value) { Array.setLong(array,pos,((Long)value)); }
@Override protected void setArray(Object array, int pos, Object value) { Array.setLong(array,pos,((Long)value)); }
Array.setInt(newObj, i, ((Number)n).intValue()); else if (arrT == long.class ) Array.setLong(newObj, i, ((Number)n).longValue()); else if (arrT == float.class ) Array.setFloat(newObj, i, ((Number)n).floatValue());
Array.setLong(array, index, ((Number) value).longValue());
Array.setInt(newObj, i, ((Number)n).intValue()); else if (arrT == long.class ) Array.setLong(newObj, i, ((Number)n).longValue()); else if (arrT == float.class ) Array.setFloat(newObj, i, ((Number)n).floatValue());
setInt(array, index, ((Integer) value).intValue()); } else if (value instanceof Long) { setLong(array, index, ((Long) value).longValue()); } else if (value instanceof Float) { setFloat(array, index, ((Float) value).floatValue());
for (Iterator iter = list.iterator(); iter.hasNext(); idx++) { Object element = iter.next(); Array.setLong(array, idx, (Long) InvokerHelper.invokeStaticMethod(DefaultGroovyMethods.class, "asType", new Object[]{element, long.class}));
Array.setBoolean(objArray, i, (Boolean) obj); } else if (obj instanceof Long) { Array.setLong(objArray, i, (Long) obj); } else if (obj instanceof Float) { Array.setFloat(objArray, i, (Float) obj);
Array.setLong(array, index, ((Number) value).longValue());
@Override protected void setSingleValue(Object array, int index, Object value) { Array.setLong(array, index, (Long) value); } },
@Override protected void setSingleValue(Object array, int index, Object value) { Array.setLong(array, index, (Long) value); } },
@Override public void set(Object array, int index, Object value) { Array.setLong(array, index, (Long) value); } },
@Override protected void setSingleValue(Object array, int index, Object value) { Array.setLong(array, index, (Long) value); } },
@Override protected void setArray(Object array, int pos, Object value) { Array.setLong(array,pos,((Long)value)); }
public void set(Object array, int index, Object data) { java.lang.reflect.Array.setLong(array, index, data != null ? (Long) data : 0); } public Object get(Object array, int index) {
@Override protected void setArray(Object array, int pos, Object value) { Array.setLong(array,pos,((Long)value)); }
public void set(Object array, int index, Object data) { java.lang.reflect.Array.setLong(array, index, data != null ? (Long) data : 0); } public Object get(Object array, int index) {
/** * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream) */ public Object readArray(WicketObjectInputStream dos) throws IOException { int length = dos.readInt(); Object array = Array.newInstance(getStreamClass(), length); for (int i = 0; i < length; i++) { Array.setLong(array, i, dos.readLong()); } return array; } }
/** * @see org.apache.wicket.util.io.ClassStreamHandler.PrimitiveArray#readArray(WicketObjectInputStream) */ @Override public Object readArray(WicketObjectInputStream dos) throws IOException { int length = dos.readInt(); Object array = Array.newInstance(getStreamClass(), length); for (int i = 0; i < length; i++) { Array.setLong(array, i, dos.readLong()); } return array; } }
public static void setArrayValue(Object array, Class<?> valueType, Object value, int index) { if (value == null) { return; } if (valueType == int.class) { Array.setInt(array, index, LdiIntegerConversionUtil.toPrimitiveInt(value)); } else if (valueType == double.class) { Array.setDouble(array, index, LdiDoubleConversionUtil.toPrimitiveDouble(value)); } else if (valueType == long.class) { Array.setLong(array, index, LdiLongConversionUtil.toPrimitiveLong(value)); } else if (valueType == float.class) { Array.setFloat(array, index, LdiFloatConversionUtil.toPrimitiveFloat(value)); } else if (valueType == short.class) { Array.setShort(array, index, LdiShortConversionUtil.toPrimitiveShort(value)); } else if (valueType == boolean.class) { Array.setBoolean(array, index, LdiBooleanConversionUtil.toPrimitiveBoolean(value)); } else if (valueType == char.class) { Array.setChar(array, index, ((Character) value).charValue()); } Array.set(array, index, value); }