Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 85 for SortedSet (0.15 sec)

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

         * 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();
          if (!iterator.hasNext()) {
            return Optional.of(current);
          }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      private static class NonNavigableSortedSet extends ForwardingSortedSet<String> {
        private final SortedSet<String> delegate = Sets.newTreeSet();
    
        @Override
        protected SortedSet<String> delegate() {
          return delegate;
        }
      }
    
      public void testAsMapSorted() {
        SortedSet<String> strings = new NonNavigableSortedSet();
        Collections.addAll(strings, "one", "two", "three");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

          }
        } else {
          for (int i = 0; i < reps; i++) {
            dummy += ORDERING.immutableSortedCopy(input).get(0);
          }
        }
        return dummy;
      }
    
      @Benchmark
      int sortedSet(int reps) {
        int dummy = 0;
        if (mutable) {
          for (int i = 0; i < reps; i++) {
            dummy += new TreeSet<Integer>(input).first();
          }
        } else {
          for (int i = 0; i < reps; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param s the sorted set to be placed in the created set
         * @return a new instance of {@link ConcurrentSkipListSet}
         * @see ConcurrentSkipListSet#ConcurrentSkipListSet(SortedSet)
         */
        public static <E> ConcurrentSkipListSet<E> newConcurrentSkipListSet(final SortedSet<? extends E> s) {
            return new ConcurrentSkipListSet<E>(s);
        }
    
        /**
         * Creates and returns a new instance of {@link CopyOnWriteArrayList}.
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SortedSetTestSuiteBuilder.java

    import java.util.Collection;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedSet
     * implementation.
     */
    @GwtIncompatible
    public class SortedSetTestSuiteBuilder<E> extends SetTestSuiteBuilder<E> {
      public static <E> SortedSetTestSuiteBuilder<E> using(TestSortedSetGenerator<E> generator) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

    import java.util.Collection;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.Set;
    import java.util.SortedSet;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Class that contains nested abstract tests for filtered collection views, along with their
     * implementation helpers.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterables.java

          List<T> list = (List<T>) iterable;
          if (list.isEmpty()) {
            throw new NoSuchElementException();
          }
          return getLastInNonemptyList(list);
        } else if (iterable instanceof SortedSet) {
          return ((SortedSet<T>) iterable).last();
        }
    
        return Iterators.getLast(iterable.iterator());
      }
    
      /**
       * Returns the last element of {@code iterable} or {@code defaultValue} if the iterable is empty.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 18:35:28 UTC 2025
    - 43.8K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import java.util.Locale;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import java.util.TreeMap;
    import java.util.TreeSet;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.TimeUnit;
    import java.util.regex.MatchResult;
    import java.util.regex.Pattern;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/package-info.java

     *   <dt>{@link SortedSetMultimap}
     *   <dd>An extension of {@link SetMultimap} for which the {@linkplain SortedSetMultimap#get
     *       collection values} associated with a given key is a {@link java.util.SortedSet}.
     *   <dt>{@link BiMap}
     *   <dd>An extension of {@link java.util.Map} that guarantees the uniqueness of its values as well
     *       as that of its keys. This is sometimes called an "invertible map," since the restriction on
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NavigableSet;
    import java.util.Queue;
    import java.util.RandomAccess;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import java.util.TreeSet;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit test for {@code Multimaps}.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top