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

All Known Implementing Classes:
PriorityLinkedListImpl

public interface PriorityLinkedList<T>

A type of linked list 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 addFirst(T t, int priority)
           
 void addLast(T t, int priority)
           
 void clear()
           
 java.util.List<T> getAll()
           
 boolean isEmpty()
           
 java.util.ListIterator<T> iterator()
           
 T peekFirst()
           
 void remove(T messageReference, int priority)
           
 T removeFirst()
           
 T removeLast()
           
 int size()
           
 

Method Detail

addFirst

void addFirst(T t,
              int priority)

addLast

void addLast(T t,
             int priority)

removeFirst

T removeFirst()

removeLast

T removeLast()

peekFirst

T peekFirst()

getAll

java.util.List<T> getAll()

clear

void clear()

size

int size()

iterator

java.util.ListIterator<T> iterator()

isEmpty

boolean isEmpty()

remove

void remove(T messageReference,
            int priority)


Copyright © 2006 JBoss Inc. All Rights Reserved.