- Type Parameters:
Type - Reference type.
public class ByReference<Type>
extends Object
There are cases where a method needs to return an object instance but not
through its return value since the return value has another use. This generic
class allows passing and returning objects by reference in a type-safe manner.
Being a simple reference wrapper around an existing type, the object member is
public and no accessor methods are provided.
One case where this is used in Dragom is for returning Version.
- Author:
- David Raymond