com.threerings.util
Class DeepUtil.FieldHandler

java.lang.Object
  extended by com.threerings.util.DeepUtil.FieldHandler
Enclosing class:
DeepUtil

protected abstract static class DeepUtil.FieldHandler
extends Object

Copies or compares a field of a single type.


Constructor Summary
protected DeepUtil.FieldHandler()
           
 
Method Summary
abstract  void copy(Field field, Object source, Object dest)
          Copies the specified field from the first object to the second.
abstract  boolean equals(Field field, Object o1, Object o2)
          Checks whether the field is equal in both objects.
abstract  int hashCode(Field field, Object object)
          Computes the hash code of the given field value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeepUtil.FieldHandler

protected DeepUtil.FieldHandler()
Method Detail

copy

public abstract void copy(Field field,
                          Object source,
                          Object dest)
                   throws IllegalAccessException
Copies the specified field from the first object to the second.

Throws:
IllegalAccessException

equals

public abstract boolean equals(Field field,
                               Object o1,
                               Object o2)
                        throws IllegalAccessException
Checks whether the field is equal in both objects.

Throws:
IllegalAccessException

hashCode

public abstract int hashCode(Field field,
                             Object object)
                      throws IllegalAccessException
Computes the hash code of the given field value.

Throws:
IllegalAccessException