com.github.libxjava.concurrent
Class AtomicNumber

java.lang.Object
  extended by com.github.libxjava.concurrent.AtomicNumber

public final class AtomicNumber
extends Object

Version:
libxjava-cldc - 0.3
Author:
Marcel Patzlaff

Constructor Summary
AtomicNumber()
           
AtomicNumber(int initialValue)
           
 
Method Summary
 boolean compareAndSet(int expected, int newValue)
           
 int get()
           
 int getAndSet(int newValue)
           
 int getAndUpdate(int diff)
           
 void set(int newValue)
           
 int updateAndGet(int diff)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicNumber

public AtomicNumber()

AtomicNumber

public AtomicNumber(int initialValue)
Method Detail

get

public int get()

compareAndSet

public boolean compareAndSet(int expected,
                             int newValue)

updateAndGet

public int updateAndGet(int diff)

getAndUpdate

public int getAndUpdate(int diff)

getAndSet

public int getAndSet(int newValue)

set

public void set(int newValue)


Copyright © 2011 Marcel Patzlaff. All Rights Reserved.