Overview | Package | Class | Tree | Deprecated | Index | Help
| J avolution v5.3 (J2SE 1.5+)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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:

- `PersistentContext.Reference` : Reachable accross multiple program executions.
- `LocalContext.Reference` : Reachable only within the scope of the `LocalContext` where it has been set.
- `AllocatorContext.Reference` : Reachable only within the scope of the `Allocator` where it has been created (factory produced).

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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| J avolution v5.3 (J2SE 1.5+)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 - 2009 Javolution.