|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepUtil
public class DeepUtil
Various methods that use reflection to perform "deep" operations: copying, comparison, etc. The usual warnings about circular references apply.
| Constructor Summary | |
|---|---|
DeepUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
copy(T source)
Creates and returns a deep copy of an object using reflection. |
|
static
|
copy(T source,
T dest)
Creates a deep copy of an object using reflection, storing the result in the object provided if possible. |
|
static
|
copy(T source,
T dest,
Object outer)
Creates a deep copy of an object using reflection, storing the result in the object provided if possible. |
|
static
|
equals(T o1,
T o2)
Compares two objects for deep equality. |
|
static int |
hashCode(Object object)
Computes the deep hash code of an object. |
|
static
|
transfer(T source,
T dest)
Transfers the state in the shared ancestry of the two arguments from the source to the destination. |
|
static
|
transfer(T source,
T dest,
Object outer)
Transfers the state in the shared ancestry of the two arguments from the source to the destination. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeepUtil()
| Method Detail |
|---|
public static <T> T copy(T source)
public static <T> T copy(T source,
T dest)
public static <T> T copy(T source,
T dest,
Object outer)
outer - the outer object reference to use for inner object creation, if any.
public static <T> T transfer(T source,
T dest)
copy(T).
public static <T> T transfer(T source,
T dest,
Object outer)
copy(T).
outer - the outer object reference to use for inner object creation, if any.
public static <T> boolean equals(T o1,
T o2)
public static int hashCode(Object object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||