net.sf.doolin.bus.support
Class Value<T>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.bus.support.Value<T>
Type Parameters:
T - type of handled value
All Implemented Interfaces:
Serializable, IBean

public class Value<T>
extends Bean

Value handler that extends the Bean class.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
Value()
          Constructor with an initial null value.
Value(T initialValue)
          Constructor with an initial value.
 
Method Summary
 T getValue()
          Gets the current value
 void setValue(T value)
          Sets the current value
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value()
Constructor with an initial null value.


Value

public Value(T initialValue)
Constructor with an initial value.

Parameters:
initialValue - Initial value to set.
Method Detail

getValue

public T getValue()
Gets the current value

Returns:
Current value

setValue

public void setValue(T value)
Sets the current value

Parameters:
value - Current value to set


Copyright © 2011. All Rights Reserved.