Interface PQueue<E>

  • All Superinterfaces:
    java.util.Collection<E>, java.lang.Iterable<E>, PCollection<E>, java.util.Queue<E>
    All Known Implementing Classes:
    AmortizedPQueue

    public interface PQueue<E>
    extends PCollection<E>, java.util.Queue<E>
    A persistent queue.
    • Method Detail

      • plus

        PQueue<E> plus​(E e)
        Specified by:
        plus in interface PCollection<E>
        Returns:
        a collection which contains e and all of the elements of this
      • plusAll

        PQueue<E> plusAll​(java.util.Collection<? extends E> list)
        Specified by:
        plusAll in interface PCollection<E>
        Returns:
        a collection which contains all of the elements of list and this
      • minus

        PCollection<E> minus​(java.lang.Object e)
        Specified by:
        minus in interface PCollection<E>
        Returns:
        this with a single instance of e removed, if e is in this
      • minusAll

        PCollection<E> minusAll​(java.util.Collection<?> list)
        Specified by:
        minusAll in interface PCollection<E>
        Returns:
        this with all elements of list completely removed
      • offer

        @Deprecated
        boolean offer​(E o)
        Deprecated.
        Specified by:
        offer in interface java.util.Queue<E>
      • poll

        @Deprecated
        E poll()
        Deprecated.
        Specified by:
        poll in interface java.util.Queue<E>
      • remove

        @Deprecated
        E remove()
        Deprecated.
        Specified by:
        remove in interface java.util.Queue<E>