Interface PsyQueuelike<T extends PsyObject>

    • Method Detail

      • psyDequeue

        T psyDequeue()
              throws PsyException
        Removes and returns the head of this queue.
        Returns:
        a head of this queue.
        Throws:
        PsyException - when this queue is empty.
      • psyEnqueue

        void psyEnqueue​(T o)
                 throws PsyException
        Inserts an element into this queue.
        Parameters:
        o - the element to enqueue.
        Throws:
        PsyException - when the element can not be inserted without violation of the capacity restrictions.