T - the generic type of the referenced valuepublic class Reference<T> extends Object
value.
Because this class represents a reference to such value instead of just being a simple holder, the equals(Object) has
been redefined to test that the two values are actually the same ('=='). Consistently, the hashCode() method
is defined to return the value's identity hash code.
The above makes this class useful for cases in which you need to build a set of unique references, without depending on the
actual equals(Object) and hashCode() implementations.
null references are also supported.
Copyright © 2017 MuleSoft, Inc.. All rights reserved.