Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 125 for SortedSet (0.05 seconds)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableSortedSet.java

    package com.google.common.collect;
    
    import java.util.SortedSet;
    
    /**
     * GWT emulation of {@link RegularImmutableSortedSet}.
     *
     * @author Hayward Chan
     */
    final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> {
      /** true if this set is a subset of another immutable sorted set. */
      final boolean isSubset;
    
      RegularImmutableSortedSet(SortedSet<E> delegate, boolean isSubset) {
        super(delegate);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 01 22:23:20 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/TestIntegerSortedSetGenerator.java

     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.List;
    import java.util.SortedSet;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Create integer sets for testing collections that are sorted by natural ordering.
     *
     * @author Chris Povirk
     * @author Jared Levy
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 11 19:03:19 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. 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());
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 28.3K bytes
    - Click Count (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java

      /** Constructor for use by subclasses. */
      protected ForwardingSortedMultiset() {}
    
      @Override
      protected abstract SortedMultiset<E> delegate();
    
      @Override
      public SortedSet<E> elementSet() {
        return (SortedSet<E>) super.elementSet();
      }
    
      /**
       * A sensible implementation of {@link SortedMultiset#elementSet} in terms of the following
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestSortedSetGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.SortedSet;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Creates sorted sets, containing sample elements, to be tested.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestSortedSetGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.SortedSet;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Creates sorted sets, containing sample elements, to be tested.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertThat(Iterables.getLast(diesOnIteratorList, "qux")).isEqualTo("bar");
      }
    
      public void testGetLast_emptySortedSet() {
        SortedSet<String> sortedSet = ImmutableSortedSet.of();
        assertThrows(NoSuchElementException.class, () -> Iterables.getLast(sortedSet));
        assertThat(Iterables.getLast(sortedSet, "c")).isEqualTo("c");
      }
    
      public void testGetLast_iterable() {
        Set<String> set = ImmutableSet.of("a", "b", "c");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  8. android/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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  9. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

            }
          };
    
      private static class NonNavigableSortedSet extends ForwardingSortedSet<String> {
    
        private final SortedSet<String> delegate = Sets.newTreeSet(Ordering.natural());
    
        @Override
        protected SortedSet<String> delegate() {
          return delegate;
        }
      }
    
      private static class NonNavigableSortedMap extends ForwardingSortedMap<String, String> {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 32.4K bytes
    - Click Count (0)
Back to Top