Package com.yahoo.lang
Class MutableLong
- java.lang.Object
-
- com.yahoo.lang.MutableLong
-
public class MutableLong extends java.lang.Object
A mutable long- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description MutableLong(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
add(long increment)
Adds the increment to the current value and returns the resulting valuelong
get()
void
set(long value)
long
subtract(long increment)
Adds the increment to the current value and returns the resulting valuejava.lang.String
toString()
-
-
-
Method Detail
-
get
public long get()
-
set
public void set(long value)
-
add
public long add(long increment)
Adds the increment to the current value and returns the resulting value
-
subtract
public long subtract(long increment)
Adds the increment to the current value and returns the resulting value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-