Package com.mayam.wf.config.shared
Class Ref<T extends HasIdentity>
java.lang.Object
com.mayam.wf.config.shared.Ref<T>
- Type Parameters:
T
- class of the referenced object.
- All Implemented Interfaces:
HasIdentity
,Serializable
A reference object meant to facilitate serialization of objects without
producing copies. The referenced objects implement > can thus be serialized
as a List, given that the deserialization post processing
calls
HasIdentity
and have a string identifier. A Listinvalid input: '<'RefsetResolvedObject(HasIdentity)
to reestablish the
connection to the referenced object.- Author:
- Markus MÃ¥rtensson
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mayam.wf.config.shared.HasIdentity
HasIdentity.Utilities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends HasIdentity>
Iterable<T> createIterable
(List<Ref<T>> list) boolean
get()
getId()
int
hashCode()
static <T extends HasIdentity>
Ref<T> of
(T object) void
setResolvedObject
(T object) toString()
-
Constructor Details
-
Ref
public Ref() -
Ref
-
Ref
-
-
Method Details
-
get
-
setResolvedObject
-
getId
- Specified by:
getId
in interfaceHasIdentity
-
of
-
defaultDisplayText
- Specified by:
defaultDisplayText
in interfaceHasIdentity
-
equals
-
hashCode
public int hashCode() -
toString
-
createIterable
-