com.threerings.util
Class DeepUtil.ObjectHandler<T>

java.lang.Object
  extended by com.threerings.util.DeepUtil.ObjectHandler<T>
Direct Known Subclasses:
DeepUtil.ReflectiveObjectHandler
Enclosing class:
DeepUtil

protected abstract static class DeepUtil.ObjectHandler<T>
extends Object

Performs the actual object operations.


Constructor Summary
protected DeepUtil.ObjectHandler()
           
 
Method Summary
abstract  T copy(T source, T dest, Object outer)
          Performs a deep copy from source to dest.
abstract  boolean equals(T o1, T o2)
          Compares two objects for equality.
abstract  int hashCode(T object)
          Computes the object's hash code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeepUtil.ObjectHandler

protected DeepUtil.ObjectHandler()
Method Detail

copy

public abstract T copy(T source,
                       T dest,
                       Object outer)
                throws IllegalAccessException
Performs a deep copy from source to dest.

Throws:
IllegalAccessException

equals

public abstract boolean equals(T o1,
                               T o2)
                        throws IllegalAccessException
Compares two objects for equality.

Throws:
IllegalAccessException

hashCode

public abstract int hashCode(T object)
                      throws IllegalAccessException
Computes the object's hash code.

Throws:
IllegalAccessException