org.entityfs.support.lang
Class SerializableObjectProxySupport<T extends Serializable>

java.lang.Object
  extended by org.entityfs.support.lang.SerializableObjectProxySupport<T>
All Implemented Interfaces:
Serializable

public abstract class SerializableObjectProxySupport<T extends Serializable>
extends Object
implements Serializable

This is a variant of ObjectProxySupport that implements Serializable.

Since:
1.0
Author:
Karl Gustafsson
See Also:
Serialized Form

Constructor Summary
protected SerializableObjectProxySupport(T proxied)
          Create the object proxy.
 
Method Summary
 boolean equals(Object o)
          Delegate the call to equals to the proxied object.
protected  T getProxied()
          Get the proxied object.
 int hashCode()
          Delegate the call to hashCode to the proxied object.
 String toString()
          Delegate the call to toString to the proxied object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableObjectProxySupport

protected SerializableObjectProxySupport(T proxied)
Create the object proxy.

Parameters:
proxied - The proxied object.
Method Detail

getProxied

protected T getProxied()
Get the proxied object.

Returns:
The proxied object.

equals

public boolean equals(Object o)
Delegate the call to equals to the proxied object.

Overrides:
equals in class Object
Returns:
The result from the proxied object.

hashCode

public int hashCode()
Delegate the call to hashCode to the proxied object.

Overrides:
hashCode in class Object
Returns:
The result from the proxied object.

toString

public String toString()
Delegate the call to toString to the proxied object.

Overrides:
toString in class Object
Returns:
The result from the proxied object.