Lines Matching defs:comparator
145 * priority queue is ordered by comparator, or by the elements'
146 * natural ordering, if comparator is null: For each node n in the
158 * The comparator, or null if priority queue uses elements'
161 private transient Comparator<? super E> comparator;
210 * comparator.
213 * @param comparator the comparator that will be used to order this
220 Comparator<? super E> comparator) {
225 this.comparator = comparator;
252 this.comparator = (Comparator<? super E>) ss.comparator();
258 this.comparator = (Comparator<? super E>) pq.comparator();
268 if (screen && (n == 1 || this.comparator != null)) {
330 Comparator<? super E> cmp = comparator;
349 * simplify use in light of possible comparator exceptions.
440 Comparator<? super E> cmp = comparator;
486 Comparator<? super E> cmp = comparator;
580 * Returns the comparator used to order the elements in this queue,
584 * @return the comparator used to order the elements in this queue,
588 public Comparator<? super E> comparator() {
589 return comparator;
633 Comparator<? super E> cmp = comparator;
905 q = new PriorityQueue<E>(Math.max(size, 1), comparator);
926 comparator = q.comparator();