|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepUtil.ObjectHandler<Object>
com.threerings.util.DeepUtil.ReflectiveObjectHandler
protected static class DeepUtil.ReflectiveObjectHandler
Handles an object according to its reflected fields.
| Field Summary | |
|---|---|
protected Field[] |
_fields
The fields to copy and compare. |
protected DeepUtil.FieldHandler[] |
_handlers
The handlers for each field. |
| Constructor Summary | |
|---|---|
DeepUtil.ReflectiveObjectHandler(Class<?> clazz)
|
|
| Method Summary | |
|---|---|
Object |
copy(Object source,
Object dest,
Object outer)
Performs a deep copy from source to dest. |
boolean |
equals(Object o1,
Object o2)
Compares two objects for equality. |
int |
hashCode(Object object)
Computes the hash code of an object's fields. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Field[] _fields
protected DeepUtil.FieldHandler[] _handlers
| Constructor Detail |
|---|
public DeepUtil.ReflectiveObjectHandler(Class<?> clazz)
| Method Detail |
|---|
public Object copy(Object source,
Object dest,
Object outer)
throws IllegalAccessException
DeepUtil.ObjectHandler
copy in class DeepUtil.ObjectHandler<Object>IllegalAccessException
public boolean equals(Object o1,
Object o2)
throws IllegalAccessException
DeepUtil.ObjectHandler
equals in class DeepUtil.ObjectHandler<Object>IllegalAccessException
public int hashCode(Object object)
throws IllegalAccessException
hashCode in class DeepUtil.ObjectHandler<Object>IllegalAccessException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||