Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for toImmutableSortedSet (0.17 sec)

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

      }
    
      /**
       * Not supported. Use {@link #toImmutableSortedSet} instead. This method exists only to hide
       * {@link ImmutableSet#toImmutableSet} from consumers of {@code ImmutableSortedSet}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link ImmutableSortedSet#toImmutableSortedSet}.
       * @since 21.0
       */
      @DoNotCall("Use toImmutableSortedSet")
      @Deprecated
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CollectCollectors.java

      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return (Collector) TO_IMMUTABLE_SET;
      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        checkNotNull(comparator);
        return Collector.of(
            () -> new ImmutableSortedSet.Builder<E>(comparator),
            ImmutableSortedSet.Builder::add,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top