Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for SortedSet (0.3 sec)

  1. 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");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. android/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");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        SortedSet<String> set = of("e", "a", "f", "b", "d", "c");
        SortedSet<String> subset = set.subSet("c", "e");
        SortedSet<String> copy = copyOf(subset);
        assertEquals(subset, copy);
      }
    
      public void testCopyOf_headSet() {
        SortedSet<String> set = of("e", "a", "f", "b", "d", "c");
        SortedSet<String> headset = set.headSet("d");
        SortedSet<String> copy = copyOf(headset);
        assertEquals(headset, copy);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SortedIterables.java

        Comparator<?> comparator2;
        if (elements instanceof SortedSet) {
          comparator2 = comparator((SortedSet<?>) elements);
        } else if (elements instanceof SortedIterable) {
          comparator2 = ((SortedIterable<?>) elements).comparator();
        } else {
          return false;
        }
        return comparator.equals(comparator2);
      }
    
      @SuppressWarnings("unchecked")
      // if sortedSet.comparator() is null, the set must be naturally ordered
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Jun 30 10:33:07 GMT 2021
    - 2K bytes
    - Viewed (0)
  5. 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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SortedSetMultimap.java

    import java.util.Map;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code SetMultimap} whose set of values for a given key are kept sorted; that is, they comprise
     * a {@link SortedSet}. It cannot hold duplicate key-value pairs; adding a key-value pair that's
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java

    import com.google.common.base.Predicate;
    import com.google.common.collect.FilteredCollectionsTestUtil.AbstractFilteredSortedSetTest;
    import java.util.SortedSet;
    import java.util.TreeSet;
    
    public final class SetsFilterSortedSetTest
        extends AbstractFilteredSortedSetTest<SortedSet<Integer>> {
      @Override
      SortedSet<Integer> createUnfiltered(Iterable<Integer> contents) {
        final TreeSet<Integer> result = Sets.newTreeSet(contents);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 16 21:55:55 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  8. 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 =
            Helpers.copyToList(
                getSubjectGenerator()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. android/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}
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

        @Override
        protected SortedSet<Integer> create(Integer[] elements) {
          return checkedCreate(nullCheckedTreeSet(elements));
        }
      }
    
      public static class ContiguousSetHeadsetGenerator extends AbstractContiguousSetGenerator {
        @Override
        protected SortedSet<Integer> create(Integer[] elements) {
          SortedSet<Integer> set = nullCheckedTreeSet(elements);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top