org.bsf.smartValueObject
Class VersionHelper

java.lang.Object
  |
  +--org.bsf.smartValueObject.VersionHelper

public class VersionHelper
extends java.lang.Object

Helper class to be used by versionable objects. Used to refactor as much code as possible from bytecode modification to this class to allow for easy customization.


Constructor Summary
VersionHelper()
           
 
Method Summary
static boolean doEquals(java.lang.reflect.Field field)
          Checks if the equals method should be performed before writing to a field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionHelper

public VersionHelper()
Method Detail

doEquals

public static boolean doEquals(java.lang.reflect.Field field)
Checks if the equals method should be performed before writing to a field. This is used to detect modifications which don't change the state of the object. Because we can't rely on user-provided equals implementations, we only allow certain classes from the java.* hierarchy and the primitive types.

Parameters:
field -
Returns: