Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for newTreeSet (0.08 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertTrue(set.containsAll(Sets.newTreeSet()));
        assertTrue(set.containsAll(Sets.newTreeSet(asList("b"))));
        assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "f"))));
        assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "b", "f"))));
        assertFalse(set.containsAll(Sets.newTreeSet(asList("d"))));
        assertFalse(set.containsAll(Sets.newTreeSet(asList("z"))));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        }
        assertTrue(
            SortedIterables.hasSameComparator(
                Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse())));
      }
    
      public void testComparator() {
        assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        }
        assertTrue(
            SortedIterables.hasSameComparator(
                Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse())));
      }
    
      public void testComparator() {
        assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Lists.newArrayList(Sets.newTreeSet(insertionOrder));
                      }
                    })
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.GENERAL_PURPOSE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewTreeSetEmpty() {
        TreeSet<Integer> set = Sets.newTreeSet();
        verifySortedSetContents(set, EMPTY_COLLECTION, null);
      }
    
      public void testNewTreeSetEmptyDerived() {
        TreeSet<Derived> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new Derived("foo"));
        set.add(new Derived("bar"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsFilterNavigableSetTest.java

    import java.util.NavigableSet;
    
    public final class SetsFilterNavigableSetTest extends AbstractFilteredNavigableSetTest {
      @Override
      NavigableSet<Integer> createUnfiltered(Iterable<Integer> contents) {
        return Sets.newTreeSet(contents);
      }
    
      @Override
      NavigableSet<Integer> filter(
          NavigableSet<Integer> elements, Predicate<? super Integer> predicate) {
        return Sets.filter(elements, predicate);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 16 21:55:55 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Lists.newArrayList(Sets.newTreeSet(insertionOrder));
                      }
                    })
                .named("ForwardingNavigableSet[SafeTreeSet] with standard implementations")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java

    public final class SetsFilterSortedSetTest
        extends AbstractFilteredSortedSetTest<SortedSet<Integer>> {
      @Override
      SortedSet<Integer> createUnfiltered(Iterable<Integer> contents) {
        final TreeSet<Integer> result = Sets.newTreeSet(contents);
        // we have to make the result not Navigable
        return new ForwardingSortedSet<Integer>() {
          @Override
          protected SortedSet<Integer> delegate() {
            return result;
          }
        };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 16 21:55:55 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Lists.newArrayList(Sets.newTreeSet(insertionOrder));
                      }
                    })
                .named("ForwardingSortedSet[SafeTreeSet] with standard implementations")
                .withFeatures(
                    CollectionSize.ANY,
    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/google/SetGenerators.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.collect.Sets.newHashSet;
    import static com.google.common.collect.Sets.newTreeSet;
    import static com.google.common.collect.testing.SampleElements.Strings.AFTER_LAST;
    import static com.google.common.collect.testing.SampleElements.Strings.AFTER_LAST_2;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top