Lines Matching refs:Comparator
32 import java.util.Comparator;
298 * comparator, this method has different behavior than
300 * that comparator.
317 * comparator.
320 * ImmutableSortedSet.orderedBy(comparator).build()} instead.
322 * @param comparator the comparator to use to sort the set
324 * @throws NullPointerException if {@code comparator} is null
326 public static <E> TreeSet<E> newTreeSet(Comparator<? super E> comparator) {
327 return new TreeSet<E>(checkNotNull(comparator));
511 * a {@link TreeSet} using a comparator that is inconsistent with {@link