Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for newTreeSet (1.53 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  2. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

    package com.google.common.collect.testing.google;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

    package com.google.common.collect.testing.google;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return new ArrayList<>(Sets.newTreeSet(insertionOrder));
                      }
                    })
                .named("TreeMultiset[Ordering.natural].elementSet")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

        "rawtypes", // https://github.com/google/guava/issues/989
        "NonApiType", // acts as a direct substitute for a constructor call
      })
      public static <E extends Comparable> TreeSet<E> newTreeSet(Iterable<? extends E> elements) {
        TreeSet<E> set = newTreeSet();
        Iterables.addAll(set, elements);
        return set;
      }
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeSet} instance with the given comparator.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

       * implemented in terms of sortedDelegate (except comparator()).
       */
      ImmutableSortedSet(Comparator<? super E> comparator) {
        this(Sets.newTreeSet(comparator));
      }
    
      ImmutableSortedSet(SortedSet<E> sortedDelegate) {
        super(sortedDelegate);
        this.sortedDelegate = Collections.unmodifiableSortedSet(sortedDelegate);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top