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

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

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

Generic Source implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.robokind.api.common.utils.RKSource
RKSource.SourceImpl<T>
 
Constructor Summary
RKSource.SourceImpl()
          Creates a new SourceImpl with a null value.
RKSource.SourceImpl(T t)
          Creates a new SourceImpl with the given value.
 
Method Summary
 T getValue()
           
 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

RKSource.SourceImpl

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


RKSource.SourceImpl

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

Parameters:
t - value to set
Method Detail

getValue

public T getValue()
Specified by:
getValue in interface org.jflux.api.core.Source<T>

set

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

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


Copyright © 2011-2013. All Rights Reserved.