org.modeshape.jcr.query

## Interface BufferManager.QueueBuffer<T>

- Type Parameters:
    `T` - the type of value
  All Superinterfaces:
    AutoCloseable, BufferManager.Buffer, Iterable<T>
  All Known Implementing Classes:
    BufferManager.CloseableQueueBuffer
  Enclosing class:
    BufferManager

      public static interface BufferManager.QueueBuffer<T>
      extends BufferManager.Buffer, Iterable<T>

  A buffer that maintains the insertion order of a series of values.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `append(T value)` Add a value to the end of this buffer.
    `Iterator<T>` | `iterator()` Get an iterator over all of the values.

    - ### Methods inherited from interface org.modeshape.jcr.query.BufferManager.Buffer

      `close, isEmpty, size`

- - ### Method Detail

    - #### append

          void append(T value)

      Add a value to the end of this buffer.
      Parameters:
        `value` - the value to be added; may be null

    - #### iterator

          Iterator<T> iterator()

      Get an iterator over all of the values.
      Specified by:
        `iterator` in interface `Iterable<T>`
      Returns:
        the iterator; never null

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