Class QueueCreate<T>


  • public class QueueCreate<T>
    extends Object
    A factory for creating a finite queue.
    Author:
    mrk
    • Constructor Detail

      • QueueCreate

        public QueueCreate()
    • Method Detail

      • create

        public Queue<T> create​(QueueElement<T>[] queueElements)
        Create a Queue.
        Parameters:
        queueElements - the queue elements
        Returns:
        the Queue
      • createQueueElement

        public QueueElement<T> createQueueElement​(T object)
        Create a QueueElement.
        Parameters:
        object - the data the queueElement contains
        Returns:
        the QueueElement