Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.share
Class Fifo

    java.lang.Object
      oracle.ifs.share.Fifo

    public class Fifo

extends java.lang.Object

A first-in first-out queue, implemented as circular buffer.

Constructor Summary
`Fifo(int initialSize)` Constructs a Fifo with specified capacity.

Method Summary
`java.lang.Object` | `dequeue()` Dequeues an object.
`void` | `enqueue(java.lang.Object o)` Enqueues an object.
`boolean` | `isEmpty()` Return indication as to whether the queue is empty.
`int` | `size()` Return the number of currently queued entries.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Fifo

    public Fifo(int initialSize)

  Constructs a Fifo with specified capacity.

  Parameters:
    `initialSize` - initial capacity

Method Detail

### enqueue

    public void enqueue(java.lang.Object o)

  Description copied from class: `Fifo`
  Enqueues an object.

  Parameters:
    `o` - object to enqueue, does nothing if null

### dequeue

    public java.lang.Object dequeue()

  Description copied from class: `Fifo`
  Dequeues an object.

  Returns:
    dequeued object, null if queue is empty

### isEmpty

    public boolean isEmpty()

  Description copied from class: `Fifo`
  Return indication as to whether the queue is empty.

  Returns:
    true if the queue is empty; false otherwise

### size

    public int size()

  Description copied from class: `Fifo`
  Return the number of currently queued entries.

  Returns:
    the number of currently queued entries.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD