Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 91 for sortedSet (0.09 sec)

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

          return multiset().comparator();
        }
    
        @Override
        public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) {
          return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet();
        }
    
        @Override
        public SortedSet<E> headSet(@ParametricNullness E toElement) {
          return multiset().headMultiset(toElement, OPEN).elementSet();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/StandardRowSortedTable.java

        return (SortedMap<R, Map<C, V>>) backingMap;
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This method returns a {@link SortedSet}, instead of the {@code Set} specified in the {@link
       * Table} interface.
       */
      @Override
      public SortedSet<R> rowKeySet() {
        return (SortedSet<R>) rowMap().keySet();
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 15 15:41:16 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

            }
          }
        }
    
      private suspend fun readImportResults(): ImportResults =
        withContext(Dispatchers.IO) {
          val sortedRules: SortedSet<ByteString> = TreeSet()
          val sortedExceptionRules: SortedSet<ByteString> = TreeSet()
          var totalRuleBytes = 0
          var totalExceptionRuleBytes = 0
    
          fileSystem.source(publicSuffixListDotDat).buffer().use { source ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java

        if (result == null) {
          return comparator = Ordering.from(forwardMultiset().comparator()).<E>reverse();
        }
        return result;
      }
    
      @Nullable private transient SortedSet<E> elementSet;
    
      @Override
      public SortedSet<E> elementSet() {
        SortedSet<E> result = elementSet;
        if (result == null) {
          return elementSet = new SortedMultisets.ElementSet<E>(this);
        }
        return result;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        ms.add("a", 1);
        ms.add("b", 3);
        ms.add("c", 2);
        ms.add("d", 1);
        ms.add("e", 3);
        ms.add("f", 2);
    
        SortedSet<String> elementSet = ms.elementSet();
        assertThat(elementSet).containsExactly("a", "b", "c", "d", "e", "f").inOrder();
        SortedSet<String> subset = elementSet.subSet("b", "f");
        assertThat(subset).containsExactly("b", "c", "d", "e").inOrder();
    
        assertTrue(subset.remove("c"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      }
    
      private static boolean hasSameComparator(Iterable<?> elements, Comparator<?> comparator) {
        if (elements instanceof SortedSet) {
          SortedSet<?> sortedSet = (SortedSet<?>) elements;
          Comparator<?> comparator2 = sortedSet.comparator();
          return (comparator2 == null)
              ? comparator == Ordering.natural()
              : comparator.equals(comparator2);
        }
        return false;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

        for (Collection<V> valueCollection : multimap().asMap().values()) {
          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingSortedSet.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingSortedSet<E extends @Nullable Object> extends ForwardingSet<E>
        implements SortedSet<E> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingSortedSet() {}
    
      @Override
      protected abstract SortedSet<E> delegate();
    
      @Override
      @CheckForNull
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java

            .testForwarding(
                SortedSet.class,
                new Function<SortedSet, SortedSet>() {
                  @Override
                  public SortedSet apply(SortedSet delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        SortedSet<String> set1 = ImmutableSortedSet.of("one");
        SortedSet<String> set2 = ImmutableSortedSet.of("two");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java

    public class SortedSetNavigationTester<E extends @Nullable Object> extends AbstractSetTester<E> {
    
      private SortedSet<E> sortedSet;
      private List<E> values;
      private @Nullable E a;
      private @Nullable E b;
      private @Nullable E c;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        sortedSet = (SortedSet<E>) getSet();
        values =
            copyToList(
                getSubjectGenerator()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top