javolution.lang
Interface Reference<T>

All Known Implementing Classes:
AllocatorContext.Reference, LocalContext.Reference, PersistentContext.Reference

public interface Reference<T>

This interface represents an object reference, the reachability level of a reference varies based on the actual reference implementation. Here are the reachability levels for some of Javolution references:

Version:
3.3, May 10, 2005
Author:
Jean-Marie Dautelle

Method Summary
 T get()
          Returns the value this reference referes to.
 void set(T value)
          Sets the value this reference referes to.
 

Method Detail

get

T get()
Returns the value this reference referes to.

Returns:
the referent or null if not set.

set

void set(T value)
Sets the value this reference referes to.

Parameters:
value - the reference value.


Copyright © 2005-2012 Javolution. All Rights Reserved.