textbender.g
Class Holder1<T>

java.lang.Object
  extended by Holder1<T>
All Implemented Interfaces:
Holder<T>

public class Holder1<T>
extends Object
implements Holder<T>

Basic implementation of a holder.


Constructor Summary
Holder1()
          Creates a Holder1.
Holder1(T thing)
          Creates a Holder1.
 
Method Summary
 T get()
          Returns the thing held.
 void set(T thing)
          Sets the thing held.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Holder1

public Holder1()
Creates a Holder1.


Holder1

public Holder1(T thing)
Creates a Holder1.

Parameters:
thing - per get()
Method Detail

get

public T get()
Returns the thing held.

Specified by:
get in interface Holder<T>
See Also:
set(Object)

set

public void set(T thing)
Sets the thing held.

See Also:
get()