-
- 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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PQueue<E>minus()PCollection<E>minus(java.lang.Object e)PCollection<E>minusAll(java.util.Collection<?> list)booleanoffer(E o)Deprecated.PQueue<E>plus(E e)PQueue<E>plusAll(java.util.Collection<? extends E> list)Epoll()Deprecated.Eremove()Deprecated.-
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
plus
PQueue<E> plus(E e)
- Specified by:
plusin interfacePCollection<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:
plusAllin interfacePCollection<E>- Returns:
- a collection which contains all of the elements of list and this
-
minus
PCollection<E> minus(java.lang.Object e)
- Specified by:
minusin interfacePCollection<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:
minusAllin interfacePCollection<E>- Returns:
- this with all elements of list completely removed
-
offer
@Deprecated boolean offer(E o)
Deprecated.- Specified by:
offerin interfacejava.util.Queue<E>
-
-