Ableverse™
Platform 6.0

av.util
Class LongQueue

java.lang.Object
  extended by av.util.LongQueue

public class LongQueue
extends Object

This class is a queue for long values, it has the same functionalities of a Queue with the Long value type, this class exists only for performance.

This class is synchronized by a ReentrantReadWriteLock.

Author:
compl

Field Summary
 long NULL_VALUE
           
 
Constructor Summary
LongQueue(long nullValue)
           
LongQueue(long nullValue, int initCapacity)
           
 
Method Summary
 long dequeue()
           
 void enqueue(long o)
           
 void ensureCapacity(int minCapacity)
           
 boolean isEmpty()
           
 long peek()
           
 void precede(long o)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_VALUE

public final long NULL_VALUE
Constructor Detail

LongQueue

public LongQueue(long nullValue,
                 int initCapacity)

LongQueue

public LongQueue(long nullValue)
Method Detail

ensureCapacity

public void ensureCapacity(int minCapacity)

enqueue

public void enqueue(long o)

precede

public void precede(long o)

peek

public long peek()

dequeue

public long dequeue()

isEmpty

public boolean isEmpty()

size

public int size()

Ableverse™
Platform 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.