Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toImmutableSortedSet (0.1 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        return CollectCollectors.toImmutableSortedSet(comparator);
      }
    
      static <E> RegularImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        if (Ordering.natural().equals(comparator)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        } else {
          return new RegularImmutableSortedSet<E>(new TreeSet<E>(comparator), false);
        }
      }
    
      public static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        return CollectCollectors.toImmutableSortedSet(comparator);
      }
    
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedSet<E> of() {
        return (ImmutableSortedSet<E>) NATURAL_EMPTY_SET;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Comparators.isInOrder;
    import static com.google.common.collect.ImmutableSortedSet.toImmutableSortedSet;
    import static com.google.common.collect.Iterables.elementsEqual;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.Sets.newHashSet;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/FluentIterable.java

       * stream.iterator())}, or pass {@link ImmutableSortedSet#toImmutableSortedSet} to {@code
       * stream.collect()}.
       *
       * @param comparator the function by which to sort set elements
       * @throws NullPointerException if any element of this iterable is {@code null}
       * @since 14.0 (since 12.0 as {@code toImmutableSortedSet()}).
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> pass {@link ImmutableSortedSet#toImmutableSortedSet} to
       * {@code stream.collect()}.
       *
       * @param comparator the function by which to sort set elements
       * @throws NullPointerException if any element of this iterable is {@code null}
       * @since 14.0 (since 12.0 as {@code toImmutableSortedSet()}).
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
Back to top