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