org.multiverse.transactional.primitives
Class TransactionalDouble

java.lang.Object
  extended by org.multiverse.transactional.primitives.TransactionalDouble

public final class TransactionalDouble
extends java.lang.Object

A reference for a primitive double.

Author:
Peter Veentjer.

Constructor Summary
TransactionalDouble()
           
TransactionalDouble(double value)
           
 
Method Summary
 void await(double desired)
           
 double dec()
           
 double dec(double amount)
           
 boolean equals(java.lang.Object thatobj)
           
 double get()
           
 int hashCode()
           
 double inc()
           
 double inc(double amount)
           
 double set(double newValue)
          Sets the new value and returns the old value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionalDouble

public TransactionalDouble()

TransactionalDouble

public TransactionalDouble(double value)
Method Detail

get

public double get()

await

public void await(double desired)

set

public double set(double newValue)
Sets the new value and returns the old value.

Parameters:
newValue - the new value.
Returns:
the previous value.

inc

public double inc()

inc

public double inc(double amount)

dec

public double dec()

dec

public double dec(double amount)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object thatobj)
Overrides:
equals in class java.lang.Object


Copyright © 2008-2010 Multiverse. All Rights Reserved.