This class may be removed in the future. Consider the replacements in JEP 193 'Variable Handles': http://openjdk.java.net/jeps/193
public static boolean getBoolean( Object obj, long offset ) { return unsafe.getBoolean( obj, offset ); }
/** * Gets boolean value from byte array. * * @param arr Byte array. * @param off Offset. * @return Boolean value from byte array. */ public static boolean getBoolean(byte[] arr, long off) { return UNSAFE.getBoolean(arr, off); }
/** * Gets boolean value from object field. * * @param obj Object. * @param fieldOff Field offset. * @return Boolean value from object field. */ public static boolean getBooleanField(Object obj, long fieldOff) { return UNSAFE.getBoolean(obj, fieldOff); }
public final boolean getBooleanValue(Object obj) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { return FSTUtil.unFlaggedUnsafe.getBoolean(obj, memOffset); } return field.getBoolean(obj); }
@Override boolean getBoolean(byte[] array, long offset) { return UNSAFE.getBoolean(array, arrayOffset + offset); } @Override void putBoolean(byte[] array, long offset, boolean b) { UNSAFE.putBoolean(array, arrayOffset + offset, b); }
public boolean getBoolean(Object o, long offset) { return this.unsafe.getBoolean(o, offset); }
@Override public boolean getBoolean(Object target, long offset) { return unsafe.getBoolean(target, offset); }
@Override protected Object get(Object object) { return UNSAFE.getBoolean(object, offset); }
@Override protected Object get(Object object) { return UNSAFE.getBoolean(object, offset); }
public boolean getBoolean(Object target, long offset) { return unsafe.getBoolean(target, offset); }
public boolean getBoolean(Object target, long offset) { return unsafe.getBoolean(target, offset); }
public final boolean getBooleanValue(Object obj) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { return FSTUtil.unFlaggedUnsafe.getBoolean(obj, memOffset); } return field.getBoolean(obj); }
@Override protected void write(Object object, Encoder out) throws IOException { out.writeBoolean(UNSAFE.getBoolean(object, offset)); } }
@Override protected void write(Object object, Encoder out) throws IOException { out.writeBoolean(UNSAFE.getBoolean(object, offset)); } }
/** * Get 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) * @return the value of the field * @throws ClassCastException if the field is not of the correct type * @throws IllegalArgumentException if this instance has no reflection field set on it */ public boolean getBoolean(Object instance) 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(); } return unsafe.getBoolean(instance, fieldOffset); }
public Object getProperty(Object obj) { return theUnsafe.getBoolean(obj, offset); }
void serialize(AbstractHessianOutput out, Object obj) throws IOException { boolean value = _unsafe.getBoolean(obj, _offset); out.writeBoolean(value); } }
void serialize(AbstractHessianOutput out, Object obj) throws IOException { boolean value = _unsafe.getBoolean(obj, _offset); out.writeBoolean(value); } }
return unsafe.getBoolean(obj, fieldOffset); case INT: return Integer.valueOf(unsafe.getInt(obj, fieldOffset));
rec.setBoolean(fieldName, unsafe.getBoolean(obj, fieldOffset)); break; case INT: