org.apfloat.samples
Class ApfloatHolder

java.lang.Object
  extended byorg.apfloat.samples.ApfloatHolder
All Implemented Interfaces:
Serializable

public class ApfloatHolder
extends Object
implements Serializable

Simple JavaBean to hold one Apfloat. This class can also be thought of as a pointer to an Apfloat.

Version:
1.0
Author:
Mikko Tommila
See Also:
Serialized Form

Constructor Summary
ApfloatHolder()
          Construct an ApfloatHolder containing null.
ApfloatHolder(Apfloat apfloat)
          Construct an ApfloatHolder containing the specified apfloat.
 
Method Summary
 Apfloat getApfloat()
          Return the apfloat contained in this bean.
 void setApfloat(Apfloat apfloat)
          Set the apfloat contained in this bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApfloatHolder

public ApfloatHolder()
Construct an ApfloatHolder containing null.


ApfloatHolder

public ApfloatHolder(Apfloat apfloat)
Construct an ApfloatHolder containing the specified apfloat.

Parameters:
apfloat - The number to hold.
Method Detail

getApfloat

public Apfloat getApfloat()
Return the apfloat contained in this bean.

Returns:
The apfloat contained in this bean.

setApfloat

public void setApfloat(Apfloat apfloat)
Set the apfloat contained in this bean.

Parameters:
apfloat - The apfloat.