Lines Matching refs:obj

35     public Object get(Object obj) throws IllegalArgumentException {
36 return new Long(getLong(obj));
39 public boolean getBoolean(Object obj) throws IllegalArgumentException {
43 public byte getByte(Object obj) throws IllegalArgumentException {
47 public char getChar(Object obj) throws IllegalArgumentException {
51 public short getShort(Object obj) throws IllegalArgumentException {
55 public int getInt(Object obj) throws IllegalArgumentException {
59 public long getLong(Object obj) throws IllegalArgumentException {
60 ensureObj(obj);
61 return unsafe.getLong(obj, fieldOffset);
64 public float getFloat(Object obj) throws IllegalArgumentException {
65 return getLong(obj);
68 public double getDouble(Object obj) throws IllegalArgumentException {
69 return getLong(obj);
72 public void set(Object obj, Object value)
75 ensureObj(obj);
83 unsafe.putLong(obj, fieldOffset, ((Byte) value).byteValue());
87 unsafe.putLong(obj, fieldOffset, ((Short) value).shortValue());
91 unsafe.putLong(obj, fieldOffset, ((Character) value).charValue());
95 unsafe.putLong(obj, fieldOffset, ((Integer) value).intValue());
99 unsafe.putLong(obj, fieldOffset, ((Long) value).longValue());
105 public void setBoolean(Object obj, boolean z)
111 public void setByte(Object obj, byte b)
114 setLong(obj, b);
117 public void setChar(Object obj, char c)
120 setLong(obj, c);
123 public void setShort(Object obj, short s)
126 setLong(obj, s);
129 public void setInt(Object obj, int i)
132 setLong(obj, i);
135 public void setLong(Object obj, long l)
138 ensureObj(obj);
142 unsafe.putLong(obj, fieldOffset, l);
145 public void setFloat(Object obj, float f)
151 public void setDouble(Object obj, double d)