Lines Matching refs:comparator

38  * comparator is provided) must be <i>consistent with equals</i> if it is to
129 * comparator. All elements inserted into the set must be <i>mutually
130 * comparable</i> by the specified comparator: {@code comparator.compare(e1,
136 * @param comparator the comparator that will be used to order this set.
140 public TreeSet(Comparator<? super E> comparator) {
141 this(new TreeMap<>(comparator));
171 this(s.comparator());
230 * and this set uses natural ordering, or its comparator
251 * and this set uses natural ordering, or its comparator
272 * and this set uses natural ordering, or its comparator
296 * its comparator does not permit null elements
305 Comparator<?> cc = set.comparator();
306 Comparator<? super E> mc = map.comparator();
318 * is null and this set uses natural ordering, or its comparator
332 * this set uses natural ordering, or its comparator does
344 * this set uses natural ordering, or its comparator does
357 * or its comparator does not permit null elements
367 * and this set uses natural ordering, or its comparator does
378 * and this set uses natural ordering, or its comparator does
386 public Comparator<? super E> comparator() {
387 return m.comparator();
409 * and this set uses natural ordering, or its comparator
420 * and this set uses natural ordering, or its comparator
431 * and this set uses natural ordering, or its comparator
442 * and this set uses natural ordering, or its comparator
489 * @serialData Emits the comparator used to order this set, or
503 s.writeObject(m.comparator());
546 * <p>The spliterator's comparator (see
548 * the tree set's comparator (see {@link #comparator()}) is {@code null}.
549 * Otherwise, the spliterator's comparator is the same as or imposes the
550 * same total ordering as the tree set's comparator.