org.testng.internal.thread
Class AtomicIntegerAdapter

java.lang.Object
  extended by org.testng.internal.thread.AtomicIntegerAdapter
All Implemented Interfaces:
java.io.Serializable, IAtomicInteger

public class AtomicIntegerAdapter
extends java.lang.Object
implements IAtomicInteger

This class/interface

See Also:
Serialized Form

Constructor Summary
AtomicIntegerAdapter(int initialValue)
           
 
Method Summary
 int get()
          Get the current value.
 int incrementAndGet()
          Atomically increment by one the current value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicIntegerAdapter

public AtomicIntegerAdapter(int initialValue)
Method Detail

get

public int get()
Description copied from interface: IAtomicInteger
Get the current value.

Specified by:
get in interface IAtomicInteger
Returns:
the current value
See Also:
IAtomicInteger.get()

incrementAndGet

public int incrementAndGet()
Description copied from interface: IAtomicInteger
Atomically increment by one the current value.

Specified by:
incrementAndGet in interface IAtomicInteger
Returns:
the updated value
See Also:
IAtomicInteger.incrementAndGet()


Copyright © 2010. All Rights Reserved.