- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for anEnum (0.09 sec)
-
guava-testlib/src/com/google/common/collect/testing/SampleElements.java
super('b', 'a', 'c', 'd', 'e'); } } public static class Enums extends SampleElements<AnEnum> { public Enums() { // elements aren't sorted, to better test SortedSet iteration ordering super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E); } } public static class Ints extends SampleElements<Integer> { public Ints() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} private static TestEnumMultisetGenerator enumMultisetGenerator() { return new TestEnumMultisetGenerator() { @Override protected Multiset<AnEnum> create(AnEnum[] elements) { return (elements.length == 0) ? EnumMultiset.create(AnEnum.class) : EnumMultiset.create(asList(elements)); } }; } private enum Color { BLUE, RED, YELLOW, GREEN,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
private enum AnEnum { @ExampleAnnotation FOO, BAR } @J2ktIncompatible @GwtIncompatible // reflection public void testGetField() { Field foo = Enums.getField(AnEnum.FOO); assertEquals("FOO", foo.getName()); assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class)); Field bar = Enums.getField(AnEnum.BAR); assertEquals("BAR", bar.getName());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K 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/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-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-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) -
src/cmd/asm/internal/lex/input.go
// The opening parenthesis has been absorbed. func (in *Input) argsFor(macro *Macro) map[string][]Token { var args [][]Token // One macro argument per iteration. Collect them all and check counts afterwards. for argNum := 0; ; argNum++ { tokens, tok := in.collectArgument(macro) args = append(args, tokens) if tok == ')' { break } } // Zero-argument macros are tricky.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 06 13:17:27 UTC 2024 - 12.5K bytes - Viewed (0) -
.github/workflows/update-rbe.yml
digest=$(curl -s --head "https://gcr.io/v2/tensorflow-sigs/build/manifests/$2" | egrep -o "sha256:[[:alnum:]]*") # Find the line matching the regex "sigbuild-r2.9" (with quotes) and # replace just the digest portion in it sed -i"" "/\"$1\"/ s/sha256:[[:alnum:]]*/$digest/g" tensorflow/tools/toolchains/remote_config/configs.bzl echo "success." }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Nov 01 08:40:10 UTC 2024 - 7.2K bytes - Viewed (0)