Additional top-level class in compilation unit: PriorityQueueBase.
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final Seq | |
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <R> PriorityQueue | collect(PartialFunction<? super T, ? extends R>
A function that is not necessarily defined of all elements of this traversable. partialFunction)Implements io. Collects all elements that are in the domain of the given |
| public static < Component type of the T> CollectorPriorityQueue. | Returns: APriorityQueue<T> Collector.Returns a |
| public Comparator | comparator()
Implements io. Returns the comparator which defines the order of the elements contained in this collection. |
| public Tuple2 | |
| public PriorityQueue | distinct()
Implements io. Returns a new version of this which contains no duplicates. |
| public PriorityQueue | distinctBy(Comparator<? super T>
A comparator comparator)Implements io. Returns a new version of this which contains no duplicates. |
| public <U> PriorityQueue | distinctBy(Function<? super T, ? extends U>
A key extractor keyExtractor)Implements io. Returns a new version of this which contains no duplicates. |
| public PriorityQueue | drop(int
The number of elements to drop. n)Implements io. Drops the first n elements of this or all elements, if this length < n. |
| public PriorityQueue | dropRight(int
The number of elements to drop. n)Implements io. Drops the last n elements of this or all elements, if this length < n. |
| public PriorityQueue | dropWhile(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Implements abstract io. Implements io. Drops elements while the predicate holds for the current element. |
| public static < Component type T extends Comparable | |
| public static <T> PriorityQueue | |
| public PriorityQueue | Returns: a newPriorityQueue instance, containing the new elementThe new element element)Implements abstract io. Enqueues a new element. |
| public PriorityQueue | Returns: a newPriorityQueue instance, containing the new elementsAn elements)PriorityQueue of elements, may be emptyImplements abstract io. Enqueues the given elements. |
| public boolean | equals(Object
an object, may be null o)Overrides java. Implements io. In Vavr there are four basic classes of collections:
|
| public static < Component type of the T> PriorityQueuePriorityQueue | fill(int
The number of elements in the size, Supplier<? extends T> PriorityQueueThe Supplier computing element values supplier)Returns a |
| public static < Component type of the T> PriorityQueuePriorityQueue | fill(int
The number of elements in the size, T PriorityQueueThe element element)Returns a |
| public PriorityQueue | filter(Predicate<? super T>
A predicate predicate)Implements io. Returns a new traversable consisting of all elements which satisfy the given predicate. |
| public <U> PriorityQueue | flatMap(Function<? super T, ? extends Iterable<? extends U>>
A mapper mapper)Implements io. FlatMaps this Traversable. |
| public <U> PriorityQueue | |
| public <U> U | Returns: an accumulated version of this.Value to start the accumulation with. zero, BiFunction<? super T, ? super U, ? extends U> The accumulator function. accumulator)Implements io. Accumulates the elements of this |
| public <C> Map | groupBy(Function<? super T, ? extends C>
A function which classifies elements into classes classifier)Implements io. Groups this elements by classifying the elements. |
| public Iterator | grouped(int
a positive block size size)Implements io. Groups this |
| public boolean | Returns: true, if thisPriorityQueue is known to have a finite size, false otherwise.Implements io. Checks if this |
| public int | hashCode()
Overrides java. Implements io. Returns the hash code of this collection. |
| public T | Returns: The first element of thisPriorityQueue.Implements io. Returns the first element of a non-empty |
| public PriorityQueue | Returns: a new instance containing all elements except the last.Implements abstract io. Implements io. Dual of tail(), returning all elements except the last. |
| public boolean | |
| public boolean | isEmpty()
Overrides default io. Checks if this Traversable is empty. |
| public boolean | |
| public boolean | isOrdered()
Overrides default io. Checks if this Traversable is ordered |
| public boolean | Returns: true, if thisPriorityQueue is known to be traversable repeatedly, false otherwise.Implements io. Checks if this |
| public T | |
| public int | Returns: the number of elementsImplements io. Computes the number of elements of this |
| public <U> PriorityQueue | map(Function<? super T, ? extends U>
A mapper. mapper)Implements io. Maps the elements of this |
| public <U> PriorityQueue | |
| public PriorityQueue | |
| public static < Component type of the T> PriorityQueuePriorityQueue. | Returns: the givenPriorityQueue instance as narrowed type PriorityQueue<T>.An queue)PriorityQueue.Narrows a widened |
| public static <T extends Comparable | |
| public static <T extends Comparable | |
| public static <T> PriorityQueue | |
| public static <T> PriorityQueue | |
| public static <T extends Comparable | |
| public static <T> PriorityQueue | |
| public static <T extends Comparable | |
| public static <T> PriorityQueue | |
| public PriorityQueue | Returns: thisPriorityQueue if it is nonempty,
otherwise PriorityQueue created from iterable, using existing comparator.An alternative other)TraversableImplements io. Returns this |
| public PriorityQueue | Returns: thisPriorityQueue if it is nonempty,
otherwise PriorityQueue created from result of evaluating supplier, using existing comparator.An alternative supplier)TraversableImplements io. Returns this |
| public Tuple2 | partition(Predicate<? super T>
A predicate which classifies an element if it is in the first or the second traversable. predicate)Implements io. Creates a partition of this |
| public PriorityQueue | replace(T
An element to be substituted. currentElement, T A replacement for currentElement. newElement)Implements io. Replaces the first occurrence (if exists) of the given currentElement with newElement. |
| public PriorityQueue | replaceAll(T
An element to be substituted. currentElement, T A replacement for currentElement. newElement)Implements io. Replaces all occurrences of the given currentElement with newElement. |
| public PriorityQueue | scan(T
neutral element for the operator op zero, BiFunction<? super T, ? super T, ? extends T> the associative operator for the scan operation)Implements io. Computes a prefix scan of the elements of the collection. |
| public <U> PriorityQueue | scanLeft(U
the initial value zero, BiFunction<? super U, ? super T, ? extends U> the binary operator applied to the intermediate result and the element operation)Implements io. Produces a collection containing cumulative results of applying the operator going left to right. |
| public <U> PriorityQueue | scanRight(U
the initial value zero, BiFunction<? super T, ? super U, ? extends U> the binary operator applied to the intermediate result and the element operation)Implements io. Produces a collection containing cumulative results of applying the operator going right to left. |
| public Iterator | slideBy(Function<? super T, ?>
A function which classifies elements into classes classifier)Implements io. Slides a non-overlapping window of a variable size over this |
| public Iterator | sliding(int
a positive window size size)Implements io. Slides a window of a specific |
| public Iterator | sliding(int
a positive window size size, int a positive step size step)Implements io. Slides a window of a specific |
| public Tuple2 | span(Predicate<? super T>
A predicate. predicate)Implements io. Returns a tuple where the first element is the longest prefix of elements that satisfy the given
|
| public String | stringPrefix()
Implements io. Returns the name of this Value type, which is used by toString(). |
| public static < Component type of the T> PriorityQueuePriorityQueue | tabulate(int
The number of elements in the size, Function<? super Integer, ? extends T> PriorityQueueThe Function computing element values function)Returns a |
| public PriorityQueue | Returns: A new instance of PriorityQueue containing all elements except the first.Implements abstract io. Implements io. Drops the first element of a non-empty |
| public PriorityQueue | take(int
The number of elements to take. n)Implements io. Takes the first n elements of this or all elements, if this length < n. |
| public PriorityQueue | takeRight(int
The number of elements to take. n)Implements io. Takes the last n elements of this or all elements, if this length < n. |
| public PriorityQueue | takeUntil(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Implements abstract io. Implements io. Takes elements until the predicate holds for the current element. |
| public List | |
| public <T1, T2> Tuple2 | unzip(Function<? super T, Tuple2<? extends T1, ? extends T2>>
a function which converts elements of this to pairs unzipper)Implements io. Unzips this elements by mapping this elements to pairs which are subsequently split into two distinct sets. |
| public <T1, T2, T3> Tuple3 | unzip3(Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>>
a function which converts elements of this to pairs unzipper)Implements io. Unzips this elements by mapping this elements to triples which are subsequently split into three distinct sets. |
| private PriorityQueue | |
| public <U> PriorityQueue | zip(Iterable<? extends U>
The Iterable providing the second half of each result pair. that)Implements io. Returns a traversable formed from this traversable and another Iterable collection by combining corresponding elements in pairs. |
| public <U> PriorityQueue | zipAll(Iterable<? extends U>
The Iterable providing the second half of each result pair. that, T The element to be used to fill up the result if this traversable is shorter than that. thisElem, U The element to be used to fill up the result if that is shorter than this traversable. thatElem)Implements io. Returns a traversable formed from this traversable and another Iterable by combining corresponding elements in pairs. |
| public <U, R> PriorityQueue | zipWith(Iterable<? extends U>
The Iterable providing the second parameter of the mapper. that, BiFunction<? super T, ? super U, ? extends R> a mapper. mapper)Implements io. Returns a traversable formed from this traversable and another Iterable collection by mapping elements. |
| public PriorityQueue | zipWithIndex()
Implements io. Zips this traversable with its indices. |
| public <U> PriorityQueue | zipWithIndex(BiFunction<? super T, ? super Integer, ? extends U>
a mapper. mapper)Implements io. Zips this traversable with its indices by applying mapper provided. |