/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestEnumSetGenerator.java | 32 public abstract class TestEnumSetGenerator implements TestSetGenerator<AnEnum> { 34 public SampleElements<AnEnum> samples() { 39 public Set<AnEnum> create(Object... elements) { 40 AnEnum[] array = new AnEnum[elements.length]; 43 array[i++] = (AnEnum) e; 48 protected abstract Set<AnEnum> create(AnEnum[] elements); 51 public AnEnum[] createArray(int length) { 52 return new AnEnum[length] [all...] |
TestEnumMapGenerator.java | 34 implements TestMapGenerator<AnEnum, String> { 37 public SampleElements<Entry<AnEnum, String>> samples() { 38 return new SampleElements<Entry<AnEnum, String>>( 39 Helpers.mapEntry(AnEnum.A, "January"), 40 Helpers.mapEntry(AnEnum.B, "February"), 41 Helpers.mapEntry(AnEnum.C, "March"), 42 Helpers.mapEntry(AnEnum.D, "April"), 43 Helpers.mapEntry(AnEnum.E, "May") 48 public final Map<AnEnum, String> create(Object... entries) { 50 Entry<AnEnum, String>[] array = new Entry[entries.length] [all...] |
AnEnum.java | 27 public enum AnEnum {
|
SampleElements.java | 78 public static class Enums extends SampleElements<AnEnum> { 81 super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E);
|
TestsForMapsInJavaUtil.java | 230 @Override protected Map<AnEnum, String> create( 231 Entry<AnEnum, String>[] entries) { 233 new EnumMap<AnEnum, String>(AnEnum.class), entries);
|
TestsForSetsInJavaUtil.java | 185 @Override public Set<AnEnum> create(AnEnum[] elements) { 187 ? EnumSet.noneOf(AnEnum.class)
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableEnumMapTest.java | 22 import com.google.common.collect.testing.AnEnum; 40 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { 41 Map<AnEnum, String> map = Maps.newHashMap(); 42 for (Entry<AnEnum, String> entry : entries) { 50 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); 55 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( 56 ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e")) [all...] |
EnumMultisetTest.java | 22 import com.google.common.collect.testing.AnEnum; 41 @Override protected Multiset<AnEnum> create(AnEnum[] elements) { 43 ? EnumMultiset.create(AnEnum.class)
|
ImmutableMapTest.java | 22 import com.google.common.collect.testing.AnEnum; 493 EnumMap<AnEnum, String> map = new EnumMap<AnEnum, String>(AnEnum.class); 494 map.put(AnEnum.B, "foo"); 495 map.put(AnEnum.C, "bar");
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
TestEnumMultisetGenerator.java | 21 import com.google.common.collect.testing.AnEnum; 36 implements TestMultisetGenerator<AnEnum> { 38 public SampleElements<AnEnum> samples() { 43 public Multiset<AnEnum> create(Object... elements) { 44 AnEnum[] array = new AnEnum[elements.length]; 47 array[i++] = (AnEnum) e; 52 protected abstract Multiset<AnEnum> create(AnEnum[] elements); 55 public AnEnum[] createArray(int length) [all...] |
MapGenerators.java | 25 import com.google.common.collect.testing.AnEnum; 144 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { 145 Map<AnEnum, String> map = Maps.newHashMap(); 146 for (Entry<AnEnum, String> entry : entries) { 156 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { 157 EnumMap<AnEnum, String> map = new EnumMap<AnEnum, String>(AnEnum.class) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableEnumMapTest.java | 23 import com.google.common.collect.testing.AnEnum; 46 protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { 47 Map<AnEnum, String> map = Maps.newHashMap(); 48 for (Entry<AnEnum, String> entry : entries) { 69 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); 74 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( 75 ImmutableMap.of(AnEnum.C, "c", AnEnum.A, "a", AnEnum.E, "e")) [all...] |
EnumMultisetTest.java | 23 import com.google.common.collect.testing.AnEnum; 67 @Override protected Multiset<AnEnum> create(AnEnum[] elements) { 69 ? EnumMultiset.create(AnEnum.class)
|
ImmutableMapTest.java | 25 import com.google.common.collect.testing.AnEnum; 645 EnumMap<AnEnum, String> map = new EnumMap<AnEnum, String>(AnEnum.class); 646 map.put(AnEnum.B, "foo"); 647 map.put(AnEnum.C, "bar");
|
SetsTest.java | 34 import com.google.common.collect.testing.AnEnum; 174 @Override protected Set<AnEnum> create(AnEnum[] elements) { 175 AnEnum[] otherElements = new AnEnum[elements.length - 1]; [all...] |
/external/libchrome/base/ |
template_util_unittest.cc | 14 enum AnEnum {}; 72 static_assert(!is_class<AnEnum>::value, "IsClass");
|
/external/libweave/third_party/chromium/base/ |
template_util_unittest.cc | 15 enum AnEnum {}; 80 static_assert(!is_class<AnEnum>::value, "IsClass");
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/ |
util_test.py | 19 class AnEnum(messages.Enum): 24 enum_field = messages.EnumField('AnEnum', 2) 30 MessageWithRemappings.AnEnum, 'value_one', 'ONE') 165 'enum_field': MessageWithRemappings.AnEnum.value_one, 174 params['enum_field'] = MessageWithRemappings.AnEnum.value_two
|
base_api_test.py | 27 class AnEnum(messages.Enum): 32 enum_field = messages.EnumField('AnEnum', 2) 38 MessageWithRemappings.AnEnum, 'value_one', 'ONE/TWO') 190 str_field='foo', enum_field=MessageWithRemappings.AnEnum.value_one) 204 enum_field=MessageWithRemappings.AnEnum.value_one)
|
/external/guava/guava-tests/test/com/google/common/base/ |
EnumsTest.java | 165 private enum AnEnum { 172 Field foo = Enums.getField(AnEnum.FOO); 176 Field bar = Enums.getField(AnEnum.BAR);
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
EnumsTest.java | 111 private enum AnEnum {
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/ |
messages_test.py | 900 global AnEnum 902 class AnEnum(messages.Enum): 907 a_field = messages.MessageField('AnEnum', 1) 914 del AnEnum [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
DescriptorsTest.java | 379 UnittestCustomOptions.TestMessageWithCustomOptions.AnEnum.getDescriptor();
|
/external/guice/lib/build/ |
guava-testlib-16.0.1.jar | |