API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.atomic. AtomicReferenceArray View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Object
      AtomicReferenceArray
Implements
 Serializable
Subclasses
Description
public class AtomicReferenceArray
  An array of object references in which elements may be updated atomically.
See also:   
Constructors
public AtomicReferenceArray ( E array)
  Creates a new AtomicReferenceArray with the same length as, and all elements copied from, the given array.
public AtomicReferenceArray (int length)
  Creates a new AtomicReferenceArray of given length.
Methods
Hide/Show inherited methods
publicfinal boolean compareAndSet (int i, E expect, E update)
  Atomically sets the element at position i to the given updated value if the current value == the expected value.
publicfinal E get (int i)
  Gets the current value at position i.
publicfinal E getAndSet (int i, E newValue)
  Atomically sets the element at position i to the given value and returns the old value.
publicfinal void lazySet (int i, E newValue)
  Eventually sets the element at position i to the given value.
publicfinal int length ()
  Returns the length of the array.
publicfinal void set (int i, E newValue)
  Sets the element at position i to the given value.
public String toString ()
  Returns the String representation of the current values of array.
publicfinal boolean weakCompareAndSet (int i, E expect, E update)
  Atomically sets the element at position i to the given updated value if the current value == the expected value.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar