com.lmax.disruptor.util
Class MutableLong

java.lang.Object
  extended by com.lmax.disruptor.util.MutableLong
Direct Known Subclasses:
PaddedLong

public class MutableLong
extends java.lang.Object

Holder class for a long value.


Constructor Summary
MutableLong()
          Default constructor
MutableLong(long initialValue)
          Construct the holder with initial value.
 
Method Summary
 long get()
          Get the long value.
 void set(long value)
          Set the long value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableLong

public MutableLong()
Default constructor


MutableLong

public MutableLong(long initialValue)
Construct the holder with initial value.

Parameters:
initialValue - to be initially set.
Method Detail

get

public long get()
Get the long value.

Returns:
the long value.

set

public void set(long value)
Set the long value.

Parameters:
value - to set.


Copyright © 2011 LMAX Ltd. All Rights Reserved.