Package at.jku.ssw.fp.util
Class DoubleRef
- java.lang.Object
-
- at.jku.ssw.fp.util.DoubleRef
-
- All Implemented Interfaces:
Serializable
public class DoubleRef extends Object implements Serializable
Class for objects with a single mutable double field.- Author:
- Herbert Praehofer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description double
value
The mutable double field
-
Constructor Summary
Constructors Modifier Constructor Description private
DoubleRef(double value)
Private constructor with the value for the mutable double field.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DoubleRef
of(double value)
Creates an object with a mutable double value.String
toString()
Returns a string representation.
-
-
-
Method Detail
-
of
public static DoubleRef of(double value)
Creates an object with a mutable double value.- Parameters:
value
- the initial value for the mutable field- Returns:
- the object with the mutable double field
-
-