org.apache.commons.pipeline.util
Class QueueFactory.PriorityQueueFactory<T>

java.lang.Object
  extended by org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory<T>
      extended by org.apache.commons.pipeline.util.QueueFactory.PriorityQueueFactory<T>
All Implemented Interfaces:
QueueFactory<T>
Enclosing interface:
QueueFactory<T>

public static class QueueFactory.PriorityQueueFactory<T>
extends QueueFactory.AbstractQueueFactory<T>
implements QueueFactory<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.commons.pipeline.util.QueueFactory
QueueFactory.AbstractQueueFactory<T>, QueueFactory.ConcurrentLinkedQueueFactory<T>, QueueFactory.LinkedListFactory<T>, QueueFactory.PriorityQueueFactory<T>
 
Field Summary
 
Fields inherited from class org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory
initialContents
 
Constructor Summary
QueueFactory.PriorityQueueFactory()
           
 
Method Summary
 PriorityQueue<T> createQueue()
          Create a new queue.
 Comparator<? super T> getComparator()
          Getter for property comparator.
 int getInitialCapacity()
          Getter for property initialCapacity.
 void setComparator(Comparator<? super T> comparator)
          Setter for property comparator.
 void setInitialCapacity(int initialCapacity)
          Setter for property initialCapacity.
 
Methods inherited from class org.apache.commons.pipeline.util.QueueFactory.AbstractQueueFactory
getInitialContents, setInitialContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueFactory.PriorityQueueFactory

public QueueFactory.PriorityQueueFactory()
Method Detail

createQueue

public PriorityQueue<T> createQueue()
Description copied from interface: QueueFactory
Create a new queue.

Specified by:
createQueue in interface QueueFactory<T>

getInitialCapacity

public int getInitialCapacity()
Getter for property initialCapacity.

Returns:
Value of property initialCapacity.

setInitialCapacity

public void setInitialCapacity(int initialCapacity)
Setter for property initialCapacity.

Parameters:
initialCapacity - New value of property initialCapacity.

getComparator

public Comparator<? super T> getComparator()
Getter for property comparator.

Returns:
Value of property comparator.

setComparator

public void setComparator(Comparator<? super T> comparator)
Setter for property comparator.

Parameters:
comparator - New value of property comparator.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.