Class Reference<T>

  • Type Parameters:
    T - the type of object contained in the handle
    All Implemented Interfaces:
    Serializable

    public final class Reference<T>
    extends Object
    implements Serializable
    An indirect handle to an object. A Reference is not thread-safe; for passing data to and from LogicalOperators, consider using a LogicalPort instead.
    See Also:
    Serialized Form
    • Field Detail

      • value

        public T value
        The referenced object.
    • Method Detail

      • newInstance

        public static <T> Reference<T> newInstance()
        Constructs a new reference object.
        Type Parameters:
        T - the type of the reference
        Returns:
        a new uninitialized reference