org.jboss.messaging.core.list
Interface PriorityHeadInsertableQueue<T>

All Superinterfaces:
java.lang.Iterable<T>

public interface PriorityHeadInsertableQueue<T>
extends java.lang.Iterable<T>

A type of linked queue which maintains items according to a priority and allows adding and removing of elements at both ends, and peeking

Version:
$Revision: 1174 $ $Id: PrioritizedDeque.java 1174 2006-08-02 14:14:32Z timfox $
Author:
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()
           
 

Method Detail

offerFirst

void offerFirst(T t,
                int priority)

offerLast

void offerLast(T t,
               int priority)

poll

T poll()

peek

T peek()

getAll

java.util.List<T> getAll()

clear

void clear()

size

int size()

iterator

java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>

isEmpty

boolean isEmpty()


Copyright © 2006 JBoss Inc. All Rights Reserved.