Home
last modified time | relevance | path

Searched refs:EnumMap (Results 1 – 25 of 117) sorted by relevance

12345

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DEnumMapDeserializationTest.java3 import java.util.EnumMap;
32 static class MySimpleEnumMap extends EnumMap<TestEnum,String> {
38 static class FromStringEnumMap extends EnumMap<TestEnum,String> {
46 static class FromDelegateEnumMap extends EnumMap<TestEnum,String> {
54 static class FromPropertiesEnumMap extends EnumMap<TestEnum,String> {
73 public EnumMap<Enum1859, String> values;
76 public Pojo1859(EnumMap<Enum1859, String> v) { in Pojo1859()
107 EnumMap<TestEnum,String> value = MAPPER.readValue("{\"OK\":\"value\"}", in testEnumMaps()
108 new TypeReference<EnumMap<TestEnum,String>>() { }); in testEnumMaps()
117 EnumMap<LowerCaseEnum,String> value = r.forType( in testToStringEnumMaps()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java15 import java.util.EnumMap;
973 EnumMap<AbsoluteUnit, EnumMap<Direction, String>> unitMap; in getAbsoluteUnitString()
974 EnumMap<Direction, String> dirMap; in getAbsoluteUnitString()
1067 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter()
1068 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter()
1106 EnumMap<RelativeUnit, String[][]> unitMap = patternMap.get(style); in getRelativeUnitPattern()
1123 …private final EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap;
1124 private final EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap;
1142EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatterData()
1143 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> relUnitPatternMap, in RelativeDateTimeFormatterData()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRelativeDateTimeFormatter.java16 import java.util.EnumMap;
887 EnumMap<AbsoluteUnit, EnumMap<Direction, String>> unitMap; in getAbsoluteUnitString()
888 EnumMap<Direction, String> dirMap; in getAbsoluteUnitString()
977 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter()
978 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter()
1016 EnumMap<RelativeUnit, String[][]> unitMap = patternMap.get(style); in getRelativeUnitPattern()
1033 …private final EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap;
1034 private final EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap;
1052EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatterData()
1053 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> relUnitPatternMap, in RelativeDateTimeFormatterData()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DEnumMapDeserializer.java27 extends ContainerDeserializerBase<EnumMap<?,?>>
237 public EnumMap<?,?> deserialize(JsonParser p, DeserializationContext ctxt) in deserialize()
244 return (EnumMap<?,?>) _valueInstantiator.createUsingDelegate(ctxt, in deserialize()
261 return (EnumMap<?,?>) ctxt.handleUnexpectedToken(getValueType(ctxt), p); in deserialize()
265 public EnumMap<?,?> deserialize(JsonParser p, DeserializationContext ctxt, in deserialize()
266 EnumMap result) in deserialize()
295 return (EnumMap<?,?>) ctxt.handleWeirdStringValue(_enumClass, keyStr, in deserialize()
337 protected EnumMap<?,?> constructMap(DeserializationContext ctxt) throws JsonMappingException { in constructMap()
339 return new EnumMap(_enumClass); in constructMap()
343 return (EnumMap<?,?>) ctxt.handleMissingInstantiator(handledType(), in constructMap()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DNullConversionsForEnumsTest.java3 import java.util.EnumMap;
47 … NullValueAsEmpty<EnumMap<ABC, String>> result = MAPPER.readValue(aposToQuotes("{'value': null }"), in testEnumMapAsEmpty()
48 new TypeReference<NullValueAsEmpty<EnumMap<ABC, String>>>() { }); in testEnumMapAsEmpty()
63 …NullContentAsEmpty<EnumMap<ABC, String>> result = MAPPER.readValue(aposToQuotes("{'values': {'B':n… in testEnumMapNullsAsEmpty()
64 new TypeReference<NullContentAsEmpty<EnumMap<ABC, String>>>() { }); in testEnumMapNullsAsEmpty()
87 …NullContentSkip<EnumMap<ABC, String>> result = MAPPER.readValue(aposToQuotes("{'values': {'B':null… in testEnumMapSkipNulls()
88 new TypeReference<NullContentSkip<EnumMap<ABC, String>>>() { }); in testEnumMapSkipNulls()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestEnumSerialization.java184EnumMap<EnumWithJsonValue,String> input = new EnumMap<EnumWithJsonValue,String>(EnumWithJsonValue.… in testEnumsWithJsonValueInMap()
215EnumMap<LowerCaseEnum,String> enums = new EnumMap<LowerCaseEnum,String>(LowerCaseEnum.class); in testToStringEnumWithEnumMap()
254 EnumMap<LC749Enum, String> m = new EnumMap<LC749Enum, String>(LC749Enum.class); in testEnumMapSerDefault()
262 EnumMap<LC749Enum, String> m = new EnumMap<LC749Enum, String>(LC749Enum.class); in testEnumMapSerDisableToString()
270 EnumMap<LC749Enum, String> m = new EnumMap<LC749Enum, String>(LC749Enum.class); in testEnumMapSerEnableToString()
297EnumMap<EnumWithJsonProperty,String> input = new EnumMap<EnumWithJsonProperty,String>(EnumWithJson… in testEnumsWithJsonPropertyAsKey()
/external/guava/android/guava/src/com/google/common/collect/
DImmutableEnumMap.java24 import java.util.EnumMap;
35 static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) { in asImmutable()
47 private final transient EnumMap<K, V> delegate;
49 private ImmutableEnumMap(EnumMap<K, V> delegate) { in ImmutableEnumMap()
105 final EnumMap<K, V> delegate;
107 EnumSerializedForm(EnumMap<K, V> delegate) { in EnumSerializedForm()
DEnumBiMap.java27 import java.util.EnumMap;
72 super(new EnumMap<K, V>(keyType), new EnumMap<V, K>(valueType)); in EnumBiMap()
134 setDelegates(new EnumMap<K, V>(keyType), new EnumMap<V, K>(valueType)); in readObject()
DEnumHashBiMap.java27 import java.util.EnumMap;
74 new EnumMap<K, V>(keyType), in EnumHashBiMap()
120 new EnumMap<K, V>(keyType), new HashMap<V, K>(keyType.getEnumConstants().length * 3 / 2)); in readObject()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/
DUnwrapSingleArrayMiscTest.java4 import java.util.EnumMap;
60 ObjectReader r = UNWRAPPING_MAPPER.readerFor(new TypeReference<EnumMap<ABC,Integer>>() { }); in testEnumMapUnwrapping()
61 EnumMap<ABC,Integer> m = r.readValue(aposToQuotes("[{'A':42}]")); in testEnumMapUnwrapping()
62 EnumMap<ABC,Integer> exp = new EnumMap<>(ABC.class); in testEnumMapUnwrapping()
/external/guava/guava/src/com/google/common/collect/
DImmutableEnumMap.java24 import java.util.EnumMap;
37 static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) { in asImmutable()
49 private final transient EnumMap<K, V> delegate;
51 private ImmutableEnumMap(EnumMap<K, V> delegate) { in ImmutableEnumMap()
122 final EnumMap<K, V> delegate;
124 EnumSerializedForm(EnumMap<K, V> delegate) { in EnumSerializedForm()
DEnumBiMap.java27 import java.util.EnumMap;
72 super(new EnumMap<K, V>(keyType), new EnumMap<V, K>(valueType)); in EnumBiMap()
134 setDelegates(new EnumMap<K, V>(keyType), new EnumMap<V, K>(valueType)); in readObject()
DEnumHashBiMap.java27 import java.util.EnumMap;
74 new EnumMap<K, V>(keyType), in EnumHashBiMap()
120 new EnumMap<K, V>(keyType), new HashMap<V, K>(keyType.getEnumConstants().length * 3 / 2)); in readObject()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/
DCollectionSerializationTest.java29 EnumMap<Key,String> _map;
31 public EnumMapBean(EnumMap<Key,String> m) in EnumMapBean()
36 public EnumMap<Key,String> getMap() { return _map; } in getMap()
184 EnumMap<Key,String> map = new EnumMap<Key,String>(Key.class); in testEnumMap()
221 EnumMap<Key,String> map = new EnumMap<Key,String>(Key.class); in testEmptyBeanEnumMap()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DTestMapConversions.java72 EnumMap<AB,String> map = new EnumMap<AB,String>(AB.class); in testMapToBean()
85 EnumMap<AB,String> result = MAPPER.convertValue(bean, in testBeanToMap()
86 new TypeReference<EnumMap<AB,String>>() { }); in testBeanToMap()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DEnumValues.java23 private transient EnumMap<?,SerializableString> _asMap;
120 public EnumMap<?,SerializableString> internalMap() { in internalMap()
121 EnumMap<?,SerializableString> result = _asMap; in internalMap()
128 result = new EnumMap(map); in internalMap()
/external/cldr/tools/java/org/unicode/cldr/util/
DValidity.java5 import java.util.EnumMap;
50 Map<LstrType, Map<Status, Set<String>>> data = new EnumMap<>(LstrType.class); in Validity()
51 Map<LstrType, Map<String, Status>> codeToStatus = new EnumMap<>(LstrType.class); in Validity()
67 data.put(type, submap = new EnumMap<>(Status.class)); in Validity()
DPluralSnapshot.java5 import java.util.EnumMap;
130 …private static final EnumMap<PluralType, EnumMap<Integral, SnapshotInfo>> SINGLETONS = new EnumMap
133 SINGLETONS.put(PluralType.cardinal, new EnumMap<Integral, SnapshotInfo>(Integral.class)); in SINGLETONS.put()
134 SINGLETONS.put(PluralType.ordinal, new EnumMap<Integral, SnapshotInfo>(Integral.class)); in SINGLETONS.put()
139 EnumMap<Integral, SnapshotInfo> temp = SINGLETONS.get(pluralType); in getInstance()
DDayPeriodsOld.java4 import java.util.EnumMap;
105 private DayPeriodsOld(ULocale base, DayPeriod[] map, EnumMap<DayPeriod, String> samples2) { in DayPeriodsOld()
115 …private void fix(DayPeriod[] map, EnumMap<DayPeriod, String> samples2, DayPeriod dayPeriod2, DayPe… in fix()
139 private final EnumMap<DayPeriod, String> samples = new EnumMap<>(DayPeriod.class);
/external/vogar/test/vogar/testing/
DInterceptOutputStreams.java24 import java.util.EnumMap;
72 private final EnumMap<Stream, State> streams2State;
79 streams2State = new EnumMap<>(Stream.class); in InterceptOutputStreams()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/
DOpcodes.java39 import java.util.EnumMap;
54 @Nonnull private final EnumMap<Opcode, Short> opcodeValues;
97 opcodeValues = new EnumMap<Opcode, Short>(Opcode.class); in Opcodes()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/
DClassNameIdResolver.java114 } else if (value instanceof EnumMap<?,?>) { in _idFrom()
115 Class<?> enumClass = ClassUtil.findEnumType((EnumMap<?,?>) value); in _idFrom()
118 … str = typeFactory.constructMapType(EnumMap.class, enumClass, valueClass).toCanonical(); in _idFrom()
/external/cldr/tools/java/org/unicode/cldr/tool/
DPluralMinimalPairs.java3 import java.util.EnumMap;
20 …private Map<PluralType, Map<PluralInfo.Count, String>> typeToCountToSample = new EnumMap<>(PluralT…
76 typeToCountToSample.put(type, countToSample = new EnumMap<>(Count.class)); in put()
DShowCoverageLevels.java3 import java.util.EnumMap;
25 …Relation<Level, String> values = new Relation(new EnumMap<Level, String>(Level.class), TreeSet.cla… in main()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DEnumCreatorTest.java207 EnumMap<EnumWithCreator,String> value = MAPPER.readValue("{\"enumA\":\"value\"}", in testEnumWithCreatorEnumMaps()
208 new TypeReference<EnumMap<EnumWithCreator,String>>() {}); in testEnumWithCreatorEnumMaps()
268 EnumMap<EnumWithCreator,String> value = mapper.readValue("{\"enumA\":\"value\"}", in testDeserializerForCreatorWithEnumMaps()
269 new TypeReference<EnumMap<EnumWithCreator,String>>() {}); in testDeserializerForCreatorWithEnumMaps()

12345