Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 91 for sortedSet (0.06 sec)

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

          implements SortedSet<E> {
    
        FilteredSortedSet(SortedSet<E> unfiltered, Predicate<? super E> predicate) {
          super(unfiltered, predicate);
        }
    
        @Override
        @CheckForNull
        public Comparator<? super E> comparator() {
          return ((SortedSet<E>) unfiltered).comparator();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * <p>This method is safe to use even when {@code sortedSet} is a synchronized or concurrent
       * collection that is currently being modified by another thread.
       *
       * @throws NullPointerException if {@code sortedSet} or any of its elements is null
       */
      public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) {
        Comparator<? super E> comparator = SortedIterables.comparator(sortedSet);
    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/src/com/google/common/collect/TreeBasedTable.java

    import java.io.Serializable;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import java.util.TreeMap;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation of {@code Table} whose row keys and column keys are ordered by their natural
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Iterator;
    import java.util.NavigableSet;
    import java.util.SortedSet;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A navigable set which forwards all its method calls to another navigable set. Subclasses should
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeMultimap.java

    import java.io.ObjectOutputStream;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Map;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.SortedSet;
    import java.util.TreeMap;
    import java.util.TreeSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@code Multimap} whose keys and values are ordered by their natural ordering or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multimaps.java

        }
    
        @Override
        public SortedSet<V> get(@ParametricNullness K key) {
          return Collections.unmodifiableSortedSet(delegate().get(key));
        }
    
        @Override
        public SortedSet<V> removeAll(@CheckForNull Object key) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public SortedSet<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top