net.sf.mmm.util.lang.api
Class GenericBean<TYPE>

java.lang.Object
  extended by net.sf.mmm.util.lang.api.GenericBean<TYPE>
Type Parameters:
TYPE - is the generic type of the value.

public class GenericBean<TYPE>
extends Object

This class is a simple java bean that has one generic property named value. It can be used for various purposes - e.g. to receive a value by passing it as argument to a method that already returns something else.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  TYPE value
           
 
Constructor Summary
GenericBean()
          The constructor.
GenericBean(TYPE value)
          The constructor.
 
Method Summary
 TYPE getValue()
          This method gets the value of this bean.
 void setValue(TYPE value)
          This method sets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private TYPE value
See Also:
getValue()
Constructor Detail

GenericBean

public GenericBean()
The constructor.


GenericBean

public GenericBean(TYPE value)
The constructor.

Parameters:
value - is the initial value.
Method Detail

getValue

public TYPE getValue()
This method gets the value of this bean.

Returns:
the value.

setValue

public void setValue(TYPE value)
This method sets the value.

Parameters:
value - is the value to set.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.