This class may be removed in the future. Consider the replacements in JEP 193 'Variable Handles': http://openjdk.java.net/jeps/193
public static void putBoolean( Object obj, long offset, boolean value ) { unsafe.putBoolean( obj, offset, value ); }
/** * Stores boolean value into byte array. * * @param arr Byte array. * @param off Offset. * @param val Value. */ public static void putBoolean(byte[] arr, long off, boolean val) { UNSAFE.putBoolean(arr, off, val); }
/** * Stores boolean value into object field. * * @param obj Object. * @param fieldOff Field offset. * @param val Value. */ public static void putBooleanField(Object obj, long fieldOff, boolean val) { UNSAFE.putBoolean(obj, fieldOff, val); }
public final void setBooleanValue(Object newObj, boolean i1) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { FSTUtil.unFlaggedUnsafe.putBoolean(newObj, memOffset, i1); return; } field.setBoolean(newObj, i1); }
@Override public void putBoolean(Object target, long offset, boolean value) { unsafe.putBoolean(target, offset, value); }
@Override void putBoolean(byte[] array, long offset, boolean b) { UNSAFE.putBoolean(array, arrayOffset + offset, b); } }
@Override protected void set(Object object, Object value) { UNSAFE.putBoolean(object, offset, (Boolean) value); }
public void putBoolean(Object o, long offset, boolean v) { this.unsafe.putBoolean(o, offset, v); }
@Override protected void set(Object object, Object value) { UNSAFE.putBoolean(object, offset, (Boolean) value); }
public void putBoolean(Object target, long offset, boolean value) { unsafe.putBoolean(target, offset, value); }
public void putBoolean(Object target, long offset, boolean value) { unsafe.putBoolean(target, offset, value); }
public final void setBooleanValue(Object newObj, boolean i1) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { FSTUtil.unFlaggedUnsafe.putBoolean(newObj, memOffset, i1); return; } field.setBoolean(newObj, i1); }
/** * Set the boolean value of this field on the given object instance. * * @param instance the object instance (must not be {@code null}, must be of the correct type) * @param value the value to set * @throws ClassCastException if {@code instance} or the field is not of the correct type * @throws IllegalArgumentException if this instance has no reflection field set on it */ public void setBoolean(Object instance, boolean value) throws ClassCastException, IllegalArgumentException { if (instance == null) { throw new IllegalArgumentException("instance is null"); } if (field == null) { throw new IllegalArgumentException(); } field.getDeclaringClass().cast(instance); if (field.getType() != boolean.class) { throw new ClassCastException(); } unsafe.putBoolean(instance, fieldOffset, value); }
@Override protected void read(Object object, Decoder in) throws IOException { UNSAFE.putBoolean(object, offset, in.readBoolean()); }
@Override protected void read(Object object, Decoder in) throws IOException { UNSAFE.putBoolean(object, offset, in.readBoolean()); }
/** * Set the value of the field to the given value. * * @param instance the instance to set * @param value the new value * @throws IllegalArgumentException if the given instance is {@code null} or not of the correct class */ public void setBoolean(Object instance, boolean value) throws IllegalArgumentException { if (! clazz.isInstance(instance)) { throw incorrectType(); } if (fieldType != boolean.class) { throw incorrectValueType(); } unsafe.putBoolean(instance, fieldOffset, value); }
unsafe.putDouble(object, offset, ((Double)value).doubleValue()); } else if (type.equals(Boolean.TYPE)) { unsafe.putBoolean(object, offset, ((Boolean)value).booleanValue()); } else { ObjectAccessException ex = new ObjectAccessException("Cannot set field of unknown type", exception);
public void setProperty(Object obj, Object value) { if (value == null) return; theUnsafe.putBoolean(obj, offset, (Boolean) value); }
@SuppressWarnings("restriction") void deserialize(AbstractHessianInput in, Object obj) throws IOException { boolean value = false; try { value = in.readBoolean(); _unsafe.putBoolean(obj, _offset, value); } catch (Exception e) { logDeserializeError(_field, obj, value, e); } } }
@SuppressWarnings("restriction") void deserialize(AbstractHessianInput in, Object obj) throws IOException { boolean value = false; try { value = in.readBoolean(); _unsafe.putBoolean(obj, _offset, value); } catch (Exception e) { logDeserializeError(_field, obj, value, e); } } }