Searched refs:Sets (Results 1 - 25 of 258) sorted by relevance

1234567891011

/external/guava/guava-tests/test/com/google/common/collect/
H A DSetOperationsTest.java37 * Unit tests for {@link Sets#union}, {@link Sets#intersection} and
38 * {@link Sets#difference}.
50 return Sets.union(
51 Sets.<String>newHashSet(), Sets.<String>newHashSet());
62 return Sets.union(
63 Sets.<String>newHashSet(elements), Sets.newHashSet(elements));
72 return Sets
[all...]
H A DSetsTest.java20 import static com.google.common.collect.Sets.newEnumSet;
21 import static com.google.common.collect.Sets.newHashSet;
22 import static com.google.common.collect.Sets.newLinkedHashSet;
23 import static com.google.common.collect.Sets.powerSet;
24 import static com.google.common.collect.Sets.unmodifiableNavigableSet;
83 * Unit test for {@code Sets}.
121 return Sets.newConcurrentHashSet(Arrays.asList(elements));
124 .named("Sets.newConcurrentHashSet")
133 ? Sets.newHashSet(
135 : Sets
[all...]
H A DSortedIterablesTest.java31 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
38 Sets.newTreeSet(Ordering.natural().reverse())));
42 assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet()));
H A DForwardingObjectTest.java41 final Set<String> delegate = Sets.newHashSet("foo");
H A DImmutableSortedSetTest.java586 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c")));
591 SortedSet<String> set = copyOf(Sets.<String>newTreeSet());
640 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH);
647 SortedSet<String> input = Sets.newTreeSet(
655 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a"));
661 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH);
670 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c")));
671 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set);
672 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d"))));
673 assertFalse(Sets
[all...]
/external/llvm/lib/Support/
H A DDeltaAlgorithm.cpp45 const changesetlist_ty &Sets) {
47 UpdatedSearchState(Changes, Sets);
50 if (Sets.size() <= 1)
55 if (Search(Changes, Sets, Res))
60 for (changesetlist_ty::const_iterator it = Sets.begin(),
61 ie = Sets.end(); it != ie; ++it)
63 if (SplitSets.size() == Sets.size())
70 const changesetlist_ty &Sets,
73 for (changesetlist_ty::const_iterator it = Sets.begin(),
74 ie = Sets
44 Delta(const changeset_ty &Changes, const changesetlist_ty &Sets) argument
69 Search(const changeset_ty &Changes, const changesetlist_ty &Sets, changeset_ty &Res) argument
77 changesetlist_ty Sets; local
[all...]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
H A DSetOperationsTest.java27 * Unit tests for {@link Sets#union}, {@link Sets#intersection} and
28 * {@link Sets#difference}.
40 friends = Sets.newHashSet("Tom", "Joe", "Dave");
41 enemies = Sets.newHashSet("Dick", "Harry", "Tom");
45 Set<String> all = Sets.union(friends, enemies);
48 ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy();
50 = Sets.union(friends, enemies).copyInto(new HashSet<String>());
59 Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave");
60 Set<String> enemies = Sets
[all...]
H A DSetsTest.java20 import static com.google.common.collect.Sets.newEnumSet;
21 import static com.google.common.collect.Sets.newHashSet;
22 import static com.google.common.collect.Sets.newLinkedHashSet;
23 import static com.google.common.collect.Sets.powerSet;
58 * Unit test for {@code Sets}.
92 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
107 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
111 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B));
115 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B));
148 HashSet<Integer> set = Sets
[all...]
H A DImmutableSortedSetTest.java428 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c")));
433 SortedSet<String> set = copyOf(Sets.<String>newTreeSet());
482 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH);
489 SortedSet<String> input = Sets.newTreeSet(
497 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a"));
503 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH);
512 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c")));
513 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set);
514 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d"))));
515 assertFalse(Sets
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DEmptyImmutableSortedSet.java28 super(Sets.newTreeSet(comparator));
/external/testng/src/main/java/org/testng/collections/
H A DSetMultiMap.java12 return Sets.newHashSet();
H A DSets.java8 public final class Sets { class
10 private Sets() {} method in class:Sets
/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheBuilderFactory.java25 import com.google.common.collect.Sets;
42 private Set<Integer> concurrencyLevels = Sets.newHashSet((Integer) null);
43 private Set<Integer> initialCapacities = Sets.newHashSet((Integer) null);
44 private Set<Integer> maximumSizes = Sets.newHashSet((Integer) null);
45 private Set<DurationSpec> expireAfterWrites = Sets.newHashSet((DurationSpec) null);
46 private Set<DurationSpec> expireAfterAccesses = Sets.newHashSet((DurationSpec) null);
47 private Set<DurationSpec> refreshes = Sets.newHashSet((DurationSpec) null);
48 private Set<Strength> keyStrengths = Sets.newHashSet((Strength) null);
49 private Set<Strength> valueStrengths = Sets.newHashSet((Strength) null);
52 this.concurrencyLevels = Sets
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DForwardingSet.java76 return Sets.removeAllImpl(this, checkNotNull(collection)); // for GWT
87 return Sets.equalsImpl(this, object);
98 return Sets.hashCodeImpl(this);
H A DFilteredKeySetMultimap.java73 return Sets.hashCodeImpl(this);
78 return Sets.equalsImpl(this, o);
/external/llvm/include/llvm/ADT/
H A DDeltaAlgorithm.h61 const changesetlist_ty &Sets);
63 /// Search - Search for a subset (or subsets) in \p Sets which can be
69 bool Search(const changeset_ty &Changes, const changesetlist_ty &Sets,
75 const changesetlist_ty &Sets) {}
74 UpdatedSearchState(const changeset_ty &Changes, const changesetlist_ty &Sets) argument
H A DDAGDeltaAlgorithm.h68 const changesetlist_ty &Sets,
67 UpdatedSearchState(const changeset_ty &Changes, const changesetlist_ty &Sets, const changeset_ty &Required) argument
/external/jcommander/src/main/java/com/beust/jcommander/internal/
H A DSets.java25 public class Sets { class
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
H A DFeatureUtilTest.java22 import com.google.common.collect.Sets;
152 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet(
160 features = Sets.<Feature<?>>newHashSet(
165 features = Sets.<Feature<?>>newHashSet(
171 features = Sets.<Feature<?>>newHashSet(
182 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet(
190 features = Sets.<Feature<?>>newHashSet(
194 features = Sets.<Feature<?>>newHashSet(
199 features = Sets.<Feature<?>>newHashSet(
212 Sets
[all...]
/external/guice/extensions/grapher/src/com/google/inject/grapher/
H A DDefaultRootKeySetCreator.java19 import com.google.common.collect.Sets;
38 Set<Key<?>> root = Sets.newHashSet();
/external/testng/src/test/java/test/
H A DNestedStaticTest.java8 import org.testng.collections.Sets;
27 Set<String> actual = Sets.newHashSet();
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DSetMultimapAsMapTester.java23 import com.google.common.collect.Sets;
74 expected.put(sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3));
75 expected.put(sampleKeys().e1, Sets.newHashSet(sampleValues().e0));
87 Set<Entry<K, Collection<V>>> expected = Sets.newHashSet();
90 (Collection<V>) Sets.newHashSet(sampleValues().e0, sampleValues().e3)));
93 (Collection<V>) Sets.newHashSet(sampleValues().e0)));
110 sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)),
/external/mockito/src/org/mockito/internal/util/collections/
H A DSets.java14 public abstract class Sets { class
/external/guava/guava/src/com/google/common/reflect/
H A DTypeVisitor.java19 import com.google.common.collect.Sets;
63 private final Set<Type> visited = Sets.newHashSet();
/external/testng/src/test/java/test/thread/
H A DBaseThreadTest.java6 import org.testng.collections.Sets;
20 m_threadIds = Sets.newHashSet();

Completed in 1125 milliseconds

1234567891011