com.io7m.r2.core

## Class R2IDPool

- java.lang.Object
- - com.io7m.r2.core.R2IDPool

- All Implemented Interfaces:
    R2IDPoolType

      @ThreadSafe
      public final class R2IDPool
      extends Object
      implements R2IDPoolType

  The default implementation of the `R2IDPoolType` interface.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `freshID()`
    `static R2IDPoolType` | `newPool()`

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

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

- - ### Method Detail

    - #### newPool

          public static R2IDPoolType newPool()

      Returns:
        A new ID pool

    - #### freshID

          public long freshID()

      Specified by:
        `freshID` in interface `R2IDPoolType`
      Returns:
        A fresh ID, guaranteed not to have been returned by this method previously

Copyright © 2017 <code@io7m.com> http://io7m.com