Home
last modified time | relevance | path

Searched refs:newHashSet (Results 1 – 25 of 122) sorted by relevance

12345

/external/guava/guava-tests/test/com/google/common/collect/
DSetOperationsTest.java51 Sets.<String>newHashSet(), Sets.<String>newHashSet()); in suite()
63 Sets.<String>newHashSet(elements), Sets.newHashSet(elements)); in suite()
73 Sets.<String>newHashSet(), Sets.newHashSet(elements)); in suite()
84 Sets.newHashSet(elements), Sets.<String>newHashSet()); in suite()
111 Sets.newHashSet(elements[0]), in suite()
112 Sets.newHashSet(elements[1], elements[2])); in suite()
123 Sets.<String>newHashSet(elements[0], elements[1]), in suite()
124 Sets.newHashSet(elements[1], elements[2])); in suite()
135 Sets.<String>newHashSet(), Sets.<String>newHashSet()); in suite()
146 Sets.<String>newHashSet(), Sets.newHashSet((String) null)); in suite()
[all …]
DSetsTest.java21 import static com.google.common.collect.Sets.newHashSet;
133 ? Sets.newHashSet( in suite()
135 : Sets.newHashSet(elements); in suite()
138 ? Sets.newHashSet( in suite()
140 : Sets.<String>newHashSet(); in suite()
150 Set<String> set1 = Sets.newHashSet(elements); in suite()
152 Set<String> set2 = Sets.newHashSet(elements); in suite()
163 Set<String> set1 = Sets.newHashSet(elements); in suite()
165 Set<String> set2 = Sets.newHashSet(samples().e3); in suite()
406 HashSet<Integer> set = Sets.newHashSet();
[all …]
DLinkedHashMultimapTest.java20 import static com.google.common.collect.Sets.newHashSet;
298 assertEquals(newHashSet(elements), multimap.get("foo")); in testGetIteration()
326 assertEquals(newHashSet(elements), multimap.entries()); in testEntriesIteration()
391 assertEquals(newHashSet(elements), multimap.keySet()); in testKeySetIteration()
401 (Collection<Integer>) Sets.newHashSet(2, 3, 6)), in testAsSetIteration()
403 (Collection<Integer>) Sets.newHashSet(4, 5, 10, 11)), in testAsSetIteration()
405 (Collection<Integer>) Sets.newHashSet(7, 8)), in testAsSetIteration()
407 (Collection<Integer>) Sets.newHashSet(9)), in testAsSetIteration()
409 (Collection<Integer>) Sets.newHashSet(12, 13, 14)) in testAsSetIteration()
430 assertEquals(newHashSet(elements), multimap.asMap().entrySet()); in testAsSetIteration()
DAbstractImmutableSetTest.java74 assertEquals(Sets.newHashSet("a", "b"), set); in testCreation_twoElements()
79 assertEquals(Sets.newHashSet("a", "b", "c"), set); in testCreation_threeElements()
84 assertEquals(Sets.newHashSet("a", "b", "c", "d"), set); in testCreation_fourElements()
89 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e"), set); in testCreation_fiveElements()
94 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f"), set); in testCreation_sixElements()
99 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g"), set); in testCreation_sevenElements()
104 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g", "h"), set); in testCreation_eightElements()
472 Sets.newHashSet(expected), copyOf(misleading)); in verifyThreadSafe()
DFauxveridesTest.java20 import static com.google.common.collect.Sets.newHashSet;
132 Set<MethodSignature> methods = newHashSet(); in getPublicStaticMethodsBetween()
140 Set<MethodSignature> publicStaticMethods = newHashSet(); in getPublicStaticMethods()
155 Set<Class<?>> classes = newHashSet(); in getClassesBetween()
DTreeMultimapExplicitTest.java204 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet()
205 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet()
206 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
DFluentIterableTest.java102 Iterable<String> set = Sets.newHashSet("a", null, "b"); in testContains_nullSetYes()
122 Iterable<String> set = Sets.newHashSet("a", null, "b"); in testContains_nonNullSetYes()
127 Iterable<String> set = Sets.newHashSet("a", "b"); in testContains_nonNullSetNo()
370 Set<String> set = Sets.newHashSet(); in testFirst_emptyIterable()
409 Set<String> set = Sets.newHashSet(); in testLast_emptyIterable()
697 assertThat(fluent(1, 3, 5).copyInto(Sets.newHashSet(1, 2))) in testCopyInto_Set()
702 assertThat(fluent(1, 3, 5).copyInto(Sets.newHashSet(1, 2, 3, 5))) in testCopyInto_SetAllDuplicates()
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
DFeatureUtilTest.java152 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_returnsSameSetInstance()
160 features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_addsImpliedFeatures()
165 features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_addsImpliedFeatures()
171 features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_addsImpliedFeatures()
182 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsNewSetInstance()
190 features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsImpliedFeatures()
194 features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsImpliedFeatures()
199 features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsImpliedFeatures()
212 Sets.<Feature<?>>newHashSet(ExampleBaseFeature.BASE_FEATURE_1), in testBuildTesterRequirements_class()
218 Sets.<Feature<?>>newHashSet( in testBuildTesterRequirements_class()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSetOperationsTest.java40 friends = Sets.newHashSet("Tom", "Joe", "Dave"); in setUp()
41 enemies = Sets.newHashSet("Dick", "Harry", "Tom"); in setUp()
59 Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave"); in testIntersection()
60 Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom"); in testIntersection()
77 Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave"); in testDifference()
78 Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom"); in testDifference()
95 Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave"); in testSymmetricDifference()
96 Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom"); in testSymmetricDifference()
DSetsTest.java21 import static com.google.common.collect.Sets.newHashSet;
148 HashSet<Integer> set = Sets.newHashSet(); in testNewHashSetEmpty()
153 HashSet<Integer> set = Sets.newHashSet(0, 1, 1); in testNewHashSetVarArgs()
158 HashSet<Integer> set = Sets.newHashSet(SOME_COLLECTION); in testNewHashSetFromCollection()
163 HashSet<Integer> set = Sets.newHashSet(SOME_ITERABLE); in testNewHashSetFromIterable()
178 HashSet<Integer> set = Sets.newHashSet(SOME_COLLECTION.iterator()); in testNewHashSetFromIterator()
300 Set<SomeEnum> units = Sets.newHashSet(SomeEnum.B, SomeEnum.D); in testComplementOfRegularSet()
306 Set<SomeEnum> units = Sets.newHashSet(SomeEnum.B, SomeEnum.D); in testComplementOfRegularSetWithType()
318 Set<SomeEnum> allUnits = Sets.newHashSet(SomeEnum.values()); in testComplementOfFullSet()
494 Set<Set<Integer>> expected = newHashSet(); in testPowerSetContents()
[all …]
DAbstractImmutableSetTest.java70 assertEquals(Sets.newHashSet("a", "b"), set); in testCreation_twoElements()
75 assertEquals(Sets.newHashSet("a", "b", "c"), set); in testCreation_threeElements()
80 assertEquals(Sets.newHashSet("a", "b", "c", "d"), set); in testCreation_fourElements()
85 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e"), set); in testCreation_fiveElements()
90 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f"), set); in testCreation_sixElements()
95 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g"), set); in testCreation_sevenElements()
100 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g", "h"), set); in testCreation_eightElements()
DTreeMultimapExplicitTest.java202 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet()
203 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet()
204 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
DImmutableBiMapTest.java75 assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet()); in assertMoreInvariants()
76 assertEquals(Sets.newHashSet(map.keySet()), map.keySet()); in assertMoreInvariants()
406 assertEquals(Sets.newHashSet("one", "two", "three", "four"), keys); in testKeySet()
414 assertEquals(Sets.newHashSet(1, 2, 3, 4), values); in testValues()
/external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/
DMappingFileProviderTest.java45 mapping.put(1, newHashSet("en")); in MappingFileProviderTest()
46 mapping.put(86, newHashSet("zh", "en", "zh_Hant")); in MappingFileProviderTest()
47 mapping.put(41, newHashSet("de", "fr", "it", "rm")); in MappingFileProviderTest()
48 mapping.put(65, newHashSet("en", "zh_Hans", "ms", "ta")); in MappingFileProviderTest()
53 private static HashSet<String> newHashSet(String... strings) { in newHashSet() method in MappingFileProviderTest
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSetMultimapAsMapTester.java74 expected.put(sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)); in testEquals()
75 expected.put(sampleKeys().e1, Sets.newHashSet(sampleValues().e0)); in testEquals()
87 Set<Entry<K, Collection<V>>> expected = Sets.newHashSet(); in testEntrySetEquals()
90 (Collection<V>) Sets.newHashSet(sampleValues().e0, sampleValues().e3))); in testEntrySetEquals()
93 (Collection<V>) Sets.newHashSet(sampleValues().e0))); in testEntrySetEquals()
110 sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)), in testValuesRemove()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderFactory.java42 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);
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java86 Set<String> names = Sets.newHashSet(); in testGetAllClasses()
87 Set<String> strings = Sets.newHashSet(); in testGetAllClasses()
88 Set<Class<?>> classes = Sets.newHashSet(); in testGetAllClasses()
89 Set<String> packageNames = Sets.newHashSet(); in testGetAllClasses()
90 Set<String> simpleNames = Sets.newHashSet(); in testGetAllClasses()
115 Set<String> names = Sets.newHashSet(); in testGetTopLevelClasses()
116 Set<String> strings = Sets.newHashSet(); in testGetTopLevelClasses()
117 Set<Class<?>> classes = Sets.newHashSet(); in testGetTopLevelClasses()
118 Set<String> packageNames = Sets.newHashSet(); in testGetTopLevelClasses()
119 Set<String> simpleNames = Sets.newHashSet(); in testGetTopLevelClasses()
[all …]
/external/testng/src/main/java/org/testng/collections/
DSets.java12 public static <V> Set<V> newHashSet() { in newHashSet() method in Sets
16 public static <V> Set<V> newHashSet(Collection<V> c) { in newHashSet() method in Sets
DSetMultiMap.java12 return Sets.newHashSet(); in createValue()
/external/testng/src/test/java/org/testng/
DAssertTest.java54 Set expected = Sets.newHashSet(); in setAssertEquals()
55 Set actual = Sets.newHashSet(); in setAssertEquals()
96 Set actual = Sets.newHashSet(); in oneNullSetAssertEquals()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DConsoleOutput.java52 private final Set<InstrumentSpec> instrumentSpecs = Sets.newHashSet();
53 private final Set<VmSpec> vmSpecs = Sets.newHashSet();
54 private final Set<BenchmarkSpec> benchmarkSpecs = Sets.newHashSet();
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DAbstractInjectorGrapher.java189 inverse.put(to, Sets.<NodeId>newHashSet()); in resolveAliases()
209 Set<Key<?>> keys = Sets.newHashSet(root); in getBindings()
210 Set<Key<?>> visitedKeys = Sets.newHashSet(); in getBindings()
/external/testng/src/test/java/test/asserttests/
DAssertTest.java60 Set<Integer> set1 = Sets.newHashSet(); in setsSuccess()
61 Set<Integer> set2 = Sets.newHashSet(); in setsSuccess()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSets.java159 public static <E> HashSet<E> newHashSet() { in newHashSet() method in Sets
177 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() method in Sets
213 public static <E> HashSet<E> newHashSet(Iterable<? extends E> elements) { in newHashSet() method in Sets
216 : newHashSet(elements.iterator()); in newHashSet()
232 public static <E> HashSet<E> newHashSet(Iterator<? extends E> elements) { in newHashSet() method in Sets
233 HashSet<E> set = newHashSet(); in newHashSet()
/external/jcommander/src/main/java/com/beust/jcommander/internal/
DSets.java27 public static <K> Set<K> newHashSet() { in newHashSet() method in Sets

12345