org.modeshape.common.collection.ring

## Class Pointer

- java.lang.Object
- - org.modeshape.common.collection.ring.Pointer

- Direct Known Subclasses:
    TrailingPointer

      public class Pointer
      extends Object

  A sequence of long values that are updated atomically.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static long` | `INITIAL_VALUE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Pointer()`
    `Pointer(long initialValue)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `get()`
    `long` | `incrementAndGet()`
    `void` | `set(long newValue)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### INITIAL_VALUE

          public static long INITIAL_VALUE

  - ### Constructor Detail

    - #### Pointer

          public Pointer()

    - #### Pointer

          public Pointer(long initialValue)

  - ### Method Detail

    - #### get

          public long get()

    - #### set

          public void set(long newValue)

    - #### incrementAndGet

          public long incrementAndGet()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.