Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for sortedSet (0.05 sec)

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

          return (SortedMap<K, V>) unfiltered;
        }
    
        @Override
        public SortedSet<K> keySet() {
          return (SortedSet<K>) super.keySet();
        }
    
        @Override
        SortedSet<K> createKeySet() {
          return new SortedKeySet();
        }
    
        @WeakOuter
        final class SortedKeySet extends KeySet implements SortedSet<K> {
          @Override
          public @Nullable Comparator<? super K> comparator() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

    import java.lang.annotation.Inherited;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.util.Collection;
    import java.util.LinkedHashSet;
    import java.util.Set;
    import java.util.SortedSet;
    
    /**
     * Optional features of classes derived from {@code Collection}.
     *
     * @author George van den Driessche
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Range.java

       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) {
        checkNotNull(values);
        if (values instanceof SortedSet) {
          SortedSet<C> set = (SortedSet<C>) values;
          Comparator<?> comparator = set.comparator();
          if (Ordering.<C>natural().equals(comparator) || comparator == null) {
            return closed(set.first(), set.last());
          }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 28K bytes
    - Viewed (0)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/DistributionTest.kt

    import org.gradle.api.tasks.testing.Test
    import org.gradle.api.tasks.testing.TestListener
    import org.gradle.process.CommandLineArgumentProvider
    import org.gradle.work.DisableCachingByDefault
    import java.io.File
    import java.util.SortedSet
    
    
    /**
     * Tests that check the end-to-end behavior of a Gradle distribution.
     * They can have a locally built Gradle distribution on their runtime classpath
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Aug 18 18:02:41 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import java.util.Map;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Queue;
    import java.util.Random;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import java.util.UUID;
    import java.util.concurrent.BlockingDeque;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("bar", Iterables.getLast(diesOnIteratorList, "qux"));
      }
    
      public void testGetLast_emptySortedSet() {
        SortedSet<String> sortedSet = ImmutableSortedSet.of();
        assertThrows(NoSuchElementException.class, () -> Iterables.getLast(sortedSet));
        assertEquals("c", Iterables.getLast(sortedSet, "c"));
      }
    
      public void testGetLast_iterable() {
        Set<String> set = ImmutableSet.of("a", "b", "c");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 45.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MultimapBuilder.java

      private static final class TreeSetSupplier<V extends @Nullable Object>
          implements Supplier<SortedSet<V>>, Serializable {
        private final Comparator<? super V> comparator;
    
        TreeSetSupplier(Comparator<? super V> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        @Override
        public SortedSet<V> get() {
          return new TreeSet<>(comparator);
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 18K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

        }
    
        /*
         * TODO(kevinb): consider whether this "optimization" is worthwhile. Users with SortedSets tend
         * to know they are SortedSets and probably would not call this method.
         */
        if (iterable instanceof SortedSet) {
          SortedSet<E> sortedSet = (SortedSet<E>) iterable;
          return Optional.of(sortedSet.last());
        }
    
        while (true) {
          E current = iterator.next();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

            ((RegularImmutableSet<Integer>) set).table.length);
      }
    
      public void testCopyOf_copiesImmutableSortedSet() {
        ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a");
        ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet);
        assertNotSame(sortedSet, copy);
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSet once CollectorTester is usable to java7.
      public void testToImmutableSet_java7() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

    import com.google.common.testing.SerializableTester;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.Map.Entry;
    import java.util.SortedSet;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit tests for {@code TreeMultimap} with explicit comparators.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top