org.eobjects.metamodel.util
Class SerializableRef<E>

java.lang.Object
  extended by org.eobjects.metamodel.util.SerializableRef<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, Ref<E>

public final class SerializableRef<E>
extends Object
implements Ref<E>, Serializable

A serializable reference to an object which may or may not be serializable. Using this reference there is safety that if the object IS serializable, it will be serialized, or otherwise it will be gracefully ignored.

See Also:
Serialized Form

Constructor Summary
SerializableRef(E obj)
           
 
Method Summary
 boolean equals(Object obj)
           
 E get()
           
 int hashCode()
           
 boolean isSerializing()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableRef

public SerializableRef(E obj)
Method Detail

get

public E get()
Specified by:
get in interface Ref<E>

isSerializing

public boolean isSerializing()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2007-2013. All Rights Reserved.