com.caucho.util
Class IntQueue

java.lang.Object
  extended by com.caucho.util.IntQueue

public class IntQueue
extends java.lang.Object

A fast queue implementation for int primitives. Space efficient because ints are not wrapped and underlying data structure is a ring buffer.


Constructor Summary
IntQueue()
           
IntQueue(int initialCapacity)
           
 
Method Summary
 void add(int value)
           
 int capacity()
           
 int remove()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntQueue

public IntQueue()

IntQueue

public IntQueue(int initialCapacity)
Method Detail

add

public void add(int value)

remove

public int remove()

size

public int size()

capacity

public int capacity()