- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for AnEnum (0.06 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
public Test testsForEnumSet() { return SetTestSuiteBuilder.using( new TestEnumSetGenerator() { @Override public Set<AnEnum> create(AnEnum[] elements) { return (elements.length == 0) ? EnumSet.noneOf(AnEnum.class) : EnumSet.copyOf(MinimalCollection.of(elements)); } }) .named("EnumSet") .withFeatures(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
public Test testsForEnumMap() { return MapTestSuiteBuilder.using( new TestEnumMapGenerator() { @Override protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries); } }) .named("EnumMap") .withFeatures( MapFeature.GENERAL_PURPOSE,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
public Test testsForEnumSet() { return SetTestSuiteBuilder.using( new TestEnumSetGenerator() { @Override public Set<AnEnum> create(AnEnum[] elements) { return (elements.length == 0) ? EnumSet.noneOf(AnEnum.class) : EnumSet.copyOf(MinimalCollection.of(elements)); } }) .named("EnumSet") .withFeatures(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 19.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
public Test testsForEnumMap() { return MapTestSuiteBuilder.using( new TestEnumMapGenerator() { @Override protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries); } }) .named("EnumMap") .withFeatures( MapFeature.GENERAL_PURPOSE,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
assertEquals(intMap.hashCode(), map.entrySet().hashCode()); assertEquals(intMap.hashCode(), map.hashCode()); } public void testCopyOfEnumMap() { EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class); map.put(AnEnum.B, "foo"); map.put(AnEnum.C, "bar"); assertTrue(ImmutableMap.copyOf(map) instanceof ImmutableEnumMap); } @J2ktIncompatible @GwtIncompatible // SerializableTester
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetsTest.java
suite.addTest( SetTestSuiteBuilder.using( new TestEnumSetGenerator() { @Override protected Set<AnEnum> create(AnEnum[] elements) { AnEnum[] otherElements = new AnEnum[elements.length - 1]; arraycopy(elements, 1, otherElements, 0, otherElements.length); return Sets.immutableEnumSet(elements[0], otherElements);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 48.6K bytes - Viewed (0)