org.jboss.messaging.core.list.impl
Class PriorityHeadInsertableQueueImpl<T>

java.lang.Object
  extended by org.jboss.messaging.core.list.impl.PriorityHeadInsertableQueueImpl<T>
All Implemented Interfaces:
PriorityHeadInsertableQueue<T>

public class PriorityHeadInsertableQueueImpl<T>
extends java.lang.Object
implements PriorityHeadInsertableQueue<T>

Version:
$Revision: 1174 $ $Id: BasicPrioritizedDeque.java 1174 2006-08-02 14:14:32Z timfox $
Author:
Constructor Summary
PriorityHeadInsertableQueueImpl(int priorities)
           
 
Method Summary
 void clear()
           
 java.util.List<T> getAll()
           
 boolean isEmpty()
           
 java.util.Iterator<T> iterator()
           
 void offerFirst(T t, int priority)
           
 void offerLast(T t, int priority)
           
 T peek()
           
 T poll()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityHeadInsertableQueueImpl

public PriorityHeadInsertableQueueImpl(int priorities)
Method Detail

offerFirst

public void offerFirst(T t,
                       int priority)
Specified by:
offerFirst in interface PriorityHeadInsertableQueue<T>

offerLast

public void offerLast(T t,
                      int priority)
Specified by:
offerLast in interface PriorityHeadInsertableQueue<T>

poll

public T poll()
Specified by:
poll in interface PriorityHeadInsertableQueue<T>

peek

public T peek()
Specified by:
peek in interface PriorityHeadInsertableQueue<T>

getAll

public java.util.List<T> getAll()
Specified by:
getAll in interface PriorityHeadInsertableQueue<T>

clear

public void clear()
Specified by:
clear in interface PriorityHeadInsertableQueue<T>

size

public int size()
Specified by:
size in interface PriorityHeadInsertableQueue<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface PriorityHeadInsertableQueue<T>

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface PriorityHeadInsertableQueue<T>


Copyright © 2006 JBoss Inc. All Rights Reserved.