- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 438 for set1 (0.01 sec)
-
android/guava-tests/test/com/google/common/collect/SetViewTest.java
Set<Integer> set2 = newHashSet(2, 3); Set<Integer> difference = difference(set1, set2); assertThat(difference).containsExactly(1); set1.add(0); assertThat(difference).containsExactly(0, 1); set2.remove(2); assertThat(difference).containsExactly(0, 1, 2); } public void testSymmetricDifference_isView() { Set<Integer> set1 = newHashSet(1, 2); Set<Integer> set2 = newHashSet(2, 3);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
BiPredicate<ImmutableSet<TypeWithDuplicates>, ImmutableSet<TypeWithDuplicates>> equivalence = (set1, set2) -> { if (!set1.equals(set2)) { return false; } for (int i = 0; i < set1.size(); i++) { if (!set1.asList().get(i).fullEquals(set2.asList().get(i))) { return false; } } return true; };
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "b", "f")))); assertFalse(set.containsAll(Sets.newTreeSet(asList("d")))); assertFalse(set.containsAll(Sets.newTreeSet(asList("z")))); assertFalse(set.containsAll(Sets.newTreeSet(asList("b", "d")))); assertFalse(set.containsAll(Sets.newTreeSet(asList("f", "d", "a")))); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
} /** * Construct a new {@link java.util.Set} that is the intersection of the given sets. * * @deprecated Use {@link com.google.common.collect.Sets#intersection(Set, Set)} instead. */ @Deprecated public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) { Set<T> result = copyToSet(set1); result.retainAll(set2); return result; } private FeatureUtil() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
} /** * Construct a new {@link java.util.Set} that is the intersection of the given sets. * * @deprecated Use {@link com.google.common.collect.Sets#intersection(Set, Set)} instead. */ @Deprecated public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) { Set<T> result = copyToSet(set1); result.retainAll(set2); return result; } private FeatureUtil() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* * private static final class FooFactoryForTest { * public static Foo create(String a, String b, int c, boolean d) { * return Foo.builder() * .setA(a) * .setB(b) * .setC(c) * .setD(d) * .build(); * } * } * * public void testEquals() { * new ClassSanityTester()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* * private static final class FooFactoryForTest { * public static Foo create(String a, String b, int c, boolean d) { * return Foo.builder() * .setA(a) * .setB(b) * .setC(c) * .setD(d) * .build(); * } * } * * public void testEquals() { * new ClassSanityTester()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
} /** * @throws Exception */ @Test public void testCopy_BeanToMap() throws Exception { final HogeDto hoge = new HogeDto(); hoge.setA("A"); hoge.setB(true); hoge.setC(3); final Map<String, Object> map = newHashMap(); BeanUtil.copyBeanToMap(hoge, map); assertThat(map, is(notNullValue())); assertThat(map.get("a"), is((Object) "A"));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 34.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
if (set.isEmpty()) { /* * The (tooLow + 1, tooHigh) arguments below would be invalid because tooLow would be * greater than tooHigh. */ return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1); } int tooHigh = set.last() + 1; int tooLow = set.first() - 1; set.add(tooHigh);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 15.9K bytes - Viewed (0)