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