Home
last modified time | relevance | path

Searched refs:AnEnum (Results 1 – 25 of 47) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DImmutableEnumMapTest.java29 import com.google.common.collect.testing.AnEnum;
52 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
53 Map<AnEnum, String> map = Maps.newHashMap(); in create()
54 for (Entry<AnEnum, String> entry : entries) { in create()
74 Map<AnEnum, AnEnum> map = in testIteratesOnce()
76 ImmutableSet.of(AnEnum.A), in testIteratesOnce()
77 new Function<AnEnum, AnEnum>() { in testIteratesOnce()
81 public AnEnum apply(AnEnum ae) { in testIteratesOnce()
87 ImmutableMap<AnEnum, AnEnum> copy = Maps.immutableEnumMap(map); in testIteratesOnce()
88 assertThat(copy.entrySet()).containsExactly(Helpers.mapEntry(AnEnum.A, AnEnum.A)); in testIteratesOnce()
[all …]
DEnumMultisetTest.java23 import com.google.common.collect.testing.AnEnum;
68 protected Multiset<AnEnum> create(AnEnum[] elements) { in enumMultisetGenerator()
70 ? EnumMultiset.create(AnEnum.class) in enumMultisetGenerator()
/external/guava/android/guava-tests/test/com/google/common/collect/
DImmutableEnumMapTest.java27 import com.google.common.collect.testing.AnEnum;
47 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
48 Map<AnEnum, String> map = Maps.newHashMap(); in create()
49 for (Entry<AnEnum, String> entry : entries) { in create()
69 Map<AnEnum, AnEnum> map = in testIteratesOnce()
71 ImmutableSet.of(AnEnum.A), in testIteratesOnce()
72 new Function<AnEnum, AnEnum>() { in testIteratesOnce()
76 public AnEnum apply(AnEnum ae) { in testIteratesOnce()
82 ImmutableMap<AnEnum, AnEnum> copy = Maps.immutableEnumMap(map); in testIteratesOnce()
83 assertThat(copy.entrySet()).containsExactly(Helpers.mapEntry(AnEnum.A, AnEnum.A)); in testIteratesOnce()
[all …]
DEnumMultisetTest.java23 import com.google.common.collect.testing.AnEnum;
68 protected Multiset<AnEnum> create(AnEnum[] elements) { in enumMultisetGenerator()
70 ? EnumMultiset.create(AnEnum.class) in enumMultisetGenerator()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DTestEnumMapGenerator.java32 public abstract class TestEnumMapGenerator implements TestMapGenerator<AnEnum, String> {
35 public SampleElements<Entry<AnEnum, String>> samples() { in samples()
37 Helpers.mapEntry(AnEnum.A, "January"), in samples()
38 Helpers.mapEntry(AnEnum.B, "February"), in samples()
39 Helpers.mapEntry(AnEnum.C, "March"), in samples()
40 Helpers.mapEntry(AnEnum.D, "April"), in samples()
41 Helpers.mapEntry(AnEnum.E, "May")); in samples()
45 public final Map<AnEnum, String> create(Object... entries) { in create()
47 Entry<AnEnum, String>[] array = new Entry[entries.length]; in create()
51 Entry<AnEnum, String> e = (Entry<AnEnum, String>) o; in create()
[all …]
DTestEnumSetGenerator.java31 public abstract class TestEnumSetGenerator implements TestSetGenerator<AnEnum> {
33 public SampleElements<AnEnum> samples() { in samples()
38 public Set<AnEnum> create(Object... elements) { in create()
39 AnEnum[] array = new AnEnum[elements.length]; in create()
42 array[i++] = (AnEnum) e; in create()
47 protected abstract Set<AnEnum> create(AnEnum[] elements); in create()
50 public AnEnum[] createArray(int length) { in createArray()
51 return new AnEnum[length]; in createArray()
56 public List<AnEnum> order(List<AnEnum> insertionOrder) { in order()
DSampleElements.java77 public static class Enums extends SampleElements<AnEnum> {
80 super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E); in Enums()
DAnEnum.java27 public enum AnEnum { enum
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DTestEnumMapGenerator.java32 public abstract class TestEnumMapGenerator implements TestMapGenerator<AnEnum, String> {
35 public SampleElements<Entry<AnEnum, String>> samples() { in samples()
37 Helpers.mapEntry(AnEnum.A, "January"), in samples()
38 Helpers.mapEntry(AnEnum.B, "February"), in samples()
39 Helpers.mapEntry(AnEnum.C, "March"), in samples()
40 Helpers.mapEntry(AnEnum.D, "April"), in samples()
41 Helpers.mapEntry(AnEnum.E, "May")); in samples()
45 public final Map<AnEnum, String> create(Object... entries) { in create()
47 Entry<AnEnum, String>[] array = new Entry[entries.length]; in create()
51 Entry<AnEnum, String> e = (Entry<AnEnum, String>) o; in create()
[all …]
DTestEnumSetGenerator.java31 public abstract class TestEnumSetGenerator implements TestSetGenerator<AnEnum> {
33 public SampleElements<AnEnum> samples() { in samples()
38 public Set<AnEnum> create(Object... elements) { in create()
39 AnEnum[] array = new AnEnum[elements.length]; in create()
42 array[i++] = (AnEnum) e; in create()
47 protected abstract Set<AnEnum> create(AnEnum[] elements); in create()
50 public AnEnum[] createArray(int length) { in createArray()
51 return new AnEnum[length]; in createArray()
56 public List<AnEnum> order(List<AnEnum> insertionOrder) { in order()
DSampleElements.java77 public static class Enums extends SampleElements<AnEnum> {
80 super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E); in Enums()
DAnEnum.java27 public enum AnEnum { enum
DTestsForMapsInJavaUtil.java377 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
378 return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DTestEnumMultisetGenerator.java21 import com.google.common.collect.testing.AnEnum;
33 public abstract class TestEnumMultisetGenerator implements TestMultisetGenerator<AnEnum> {
35 public SampleElements<AnEnum> samples() { in samples()
40 public Multiset<AnEnum> create(Object... elements) { in create()
41 AnEnum[] array = new AnEnum[elements.length]; in create()
44 array[i++] = (AnEnum) e; in create()
49 protected abstract Multiset<AnEnum> create(AnEnum[] elements); in create()
52 public AnEnum[] createArray(int length) { in createArray()
53 return new AnEnum[length]; in createArray()
58 public List<AnEnum> order(List<AnEnum> insertionOrder) { in order()
DMapGenerators.java27 import com.google.common.collect.testing.AnEnum;
153 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
154 Map<AnEnum, String> map = Maps.newHashMap(); in create()
155 for (Entry<AnEnum, String> entry : entries) { in create()
165 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
166 EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class); in create()
167 for (Entry<AnEnum, String> entry : entries) { in create()
174 public Iterable<Entry<AnEnum, String>> order(List<Entry<AnEnum, String>> insertionOrder) { in order() argument
175 return new Ordering<Entry<AnEnum, String>>() { in order()
178 public int compare(Entry<AnEnum, String> left, Entry<AnEnum, String> right) { in order()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DTestEnumMultisetGenerator.java21 import com.google.common.collect.testing.AnEnum;
33 public abstract class TestEnumMultisetGenerator implements TestMultisetGenerator<AnEnum> {
35 public SampleElements<AnEnum> samples() { in samples()
40 public Multiset<AnEnum> create(Object... elements) { in create()
41 AnEnum[] array = new AnEnum[elements.length]; in create()
44 array[i++] = (AnEnum) e; in create()
49 protected abstract Multiset<AnEnum> create(AnEnum[] elements); in create()
52 public AnEnum[] createArray(int length) { in createArray()
53 return new AnEnum[length]; in createArray()
58 public List<AnEnum> order(List<AnEnum> insertionOrder) { in order()
DMapGenerators.java27 import com.google.common.collect.testing.AnEnum;
153 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
154 Map<AnEnum, String> map = Maps.newHashMap(); in create()
155 for (Entry<AnEnum, String> entry : entries) { in create()
165 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { in create() argument
166 EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class); in create()
167 for (Entry<AnEnum, String> entry : entries) { in create()
174 public Iterable<Entry<AnEnum, String>> order(List<Entry<AnEnum, String>> insertionOrder) { in order() argument
175 return new Ordering<Entry<AnEnum, String>>() { in order()
178 public int compare(Entry<AnEnum, String> left, Entry<AnEnum, String> right) { in order()
/external/llvm-project/clang/test/CodeGenObjC/
Dblock-ptr-type-crash.m8 typedef enum AnEnum : uint64_t AnEnum; enum
9 enum AnEnum: uint64_t {
20 AnEnum type;
/external/python/apitools/apitools/base/py/
Dutil_test.py34 class AnEnum(messages.Enum): class in MessageWithRemappings
48 MessageWithRemappings.AnEnum, 'value_one', 'ONE')
183 'enum_field': MessageWithRemappings.AnEnum.value_one,
184 'enum_field_remapping': MessageWithRemappings.AnEnum.value_one,
194 params['enum_field'] = MessageWithRemappings.AnEnum.value_two
Dbase_api_test.py55 class AnEnum(messages.Enum): class in MessageWithRemappings
66 MessageWithRemappings.AnEnum, 'value_one', 'ONE/TWO')
296 str_field='foo', enum_field=MessageWithRemappings.AnEnum.value_one)
310 enum_field=MessageWithRemappings.AnEnum.value_one)
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DEnumDeserializationTest.java137 public enum AnEnum { enum in EnumDeserializationTest
142 public static class AnEnumDeserializer extends FromStringDeserializer<AnEnum> {
145 super(AnEnum.class); in AnEnumDeserializer()
149 … protected AnEnum _deserialize(String value, DeserializationContext ctxt) throws IOException { in _deserialize()
151 return AnEnum.valueOf(value); in _deserialize()
153 return (AnEnum) ctxt.handleWeirdStringValue(AnEnum.class, value, in _deserialize()
164 return AnEnum.valueOf(key); in deserializeKey()
166 return ctxt.handleWeirdKey(AnEnum.class, key, "Undefined AnEnum code"); in deserializeKey()
179 context.setMixInAnnotations(AnEnum.class, LanguageCodeMixin.class); in setupModule()
558 new TypeReference<Map<AnEnum, String>>() {}); in testExceptionFromCustomEnumKeyDeserializer()
/external/libchrome/mojo/public/interfaces/bindings/tests/
Dtest_unions.mojom9 enum AnEnum {
31 AnEnum f_enum;
/external/guava/android/guava-tests/test/com/google/common/base/
DEnumsTest.java172 private enum AnEnum { enum in EnumsTest
180 Field foo = Enums.getField(AnEnum.FOO); in testGetField()
184 Field bar = Enums.getField(AnEnum.BAR); in testGetField()
/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java172 private enum AnEnum { enum in EnumsTest
180 Field foo = Enums.getField(AnEnum.FOO); in testGetField()
184 Field bar = Enums.getField(AnEnum.BAR); in testGetField()
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/testing/
DAnEnum.java6 public enum AnEnum { enum

12