-
- 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)
boolean
offer(E o)
Deprecated.PQueue<E>
plus(E e)
PQueue<E>
plusAll(java.util.Collection<? extends E> list)
E
poll()
Deprecated.E
remove()
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:
plus
in 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:
plusAll
in 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:
minus
in 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:
minusAll
in interfacePCollection<E>
- Returns:
- this with all elements of list completely removed
-
offer
@Deprecated boolean offer(E o)
Deprecated.- Specified by:
offer
in interfacejava.util.Queue<E>
-
-