Class MutableLong

java.lang.Object
com.yahoo.lang.MutableLong

public class MutableLong extends Object
A mutable long
Author:
bratseth
  • Constructor Summary

    Constructors
    Constructor
    Description
    MutableLong(long value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    add(long increment)
    Adds the increment to the current value and returns the resulting value
    long
    get()
     
    void
    set(long value)
     
    long
    subtract(long increment)
    Adds the increment to the current value and returns the resulting value
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MutableLong

      public MutableLong(long value)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object