javautils.holders
Class DoubleHolder

java.lang.Object
  |
  +--javautils.holders.AbstractHolder
        |
        +--javautils.holders.DoubleHolder
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class DoubleHolder
extends AbstractHolder

A simple mutable holder for double-values. This class is designed to be used in situations in which you need to store doubles in collections or when you want to be able to mutate an double from an anonymous inner class, for example.

See Also:
Serialized Form

Field Summary
 double value
          The mutable value of this holder.
 
Constructor Summary
DoubleHolder()
          Default constructor for convenience.
DoubleHolder(double value)
          A new holder with specified initial value.
 
Method Summary
protected  java.lang.Object get()
          Overrides the base method for efficiency.
 
Methods inherited from class javautils.holders.AbstractHolder
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public double value

The mutable value of this holder.

Constructor Detail

DoubleHolder

public DoubleHolder()

Default constructor for convenience.


DoubleHolder

public DoubleHolder(double value)

A new holder with specified initial value.

Method Detail

get

protected java.lang.Object get()

Overrides the base method for efficiency.

Overrides:
get in class AbstractHolder