org.robokind.api.common.utils
Class Source.SourceImpl<T>

java.lang.Object
  extended by org.robokind.api.common.utils.Source.SourceImpl<T>
Type Parameters:
T - object class
All Implemented Interfaces:
Source<T>
Enclosing interface:
Source<T>

public static class Source.SourceImpl<T>
extends Object
implements Source<T>

Generic Source implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.robokind.api.common.utils.Source
Source.SourceImpl<T>
 
Constructor Summary
Source.SourceImpl()
          Creates a new SourceImpl with a null value.
Source.SourceImpl(T t)
          Creates a new SourceImpl with the given value.
 
Method Summary
 T get()
          Returns the object.
 void set(T t)
          Set the object value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source.SourceImpl

public Source.SourceImpl()
Creates a new SourceImpl with a null value.


Source.SourceImpl

public Source.SourceImpl(T t)
Creates a new SourceImpl with the given value.

Parameters:
t - value to set
Method Detail

get

public T get()
Description copied from interface: Source
Returns the object.

Specified by:
get in interface Source<T>
Returns:
the object

set

public void set(T t)
Description copied from interface: Source
Set the object value.

Specified by:
set in interface Source<T>
Parameters:
t - the value to set


Copyright © 2011. All Rights Reserved.