/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/ |
D | NullConversionsForContentTest.java | 7 import com.fasterxml.jackson.core.type.TypeReference; 49 …TypeReference<NullContentUndefined<List<String>>> listType = new TypeReference<NullContentUndefine… in testFailOnNullFromDefaults() 83 …TypeReference<NullContentFail<List<Integer>>> typeRef = new TypeReference<NullContentFail<List<Int… in testFailOnNullWithCollections() 106 MAPPER.readValue(JSON, new TypeReference<NullContentFail<List<String>>>() { }); in testFailOnNullWithCollections() 119 MAPPER.readValue(JSON, new TypeReference<NullContentFail<Object[]>>() { }); in testFailOnNullWithArrays() 128 MAPPER.readValue(JSON, new TypeReference<NullContentFail<String[]>>() { }); in testFailOnNullWithArrays() 142 MAPPER.readValue(JSON, new TypeReference<NullContentFail<boolean[]>>() { }); in testFailOnNullWithPrimitiveArrays() 150 MAPPER.readValue(JSON, new TypeReference<NullContentFail<int[]>>() { }); in testFailOnNullWithPrimitiveArrays() 158 MAPPER.readValue(JSON, new TypeReference<NullContentFail<double[]>>() { }); in testFailOnNullWithPrimitiveArrays() 171 … MAPPER.readValue(MAP_JSON, new TypeReference<NullContentFail<Map<String,String>>>() { }); in testFailOnNullWithMaps() [all …]
|
D | NullConversionsGenericTest.java | 8 import com.fasterxml.jackson.core.type.TypeReference; 47 new TypeReference<GeneralEmpty<Point>>() { }); in testNullsToEmptyPojo() 66 GeneralEmpty<Point> result = MAPPER.readerFor(new TypeReference<GeneralEmpty<Point>>() { }) in testEmptyStringToNullToEmptyPojo() 78 new TypeReference<GeneralEmpty<List<String>>>() { }); in testNullsToEmptyCollection() 84 new TypeReference<GeneralEmpty<List<Integer>>>() { }); in testNullsToEmptyCollection() 92 new TypeReference<GeneralEmpty<Map<String,String>>>() { }); in testNullsToEmptyMap() 102 new TypeReference<GeneralEmpty<Object[]>>() { }); in testNullsToEmptyArrays() 107 new TypeReference<GeneralEmpty<String[]>>() { }); in testNullsToEmptyArrays() 112 new TypeReference<GeneralEmpty<int[]>>() { }); in testNullsToEmptyArrays() 117 new TypeReference<GeneralEmpty<double[]>>() { }); in testNullsToEmptyArrays() [all …]
|
D | NullConversionsForEnumsTest.java | 8 import com.fasterxml.jackson.core.type.TypeReference; 40 new TypeReference<NullValueAsEmpty<EnumSet<ABC>>>() { }); in testEnumSetAsEmpty() 48 new TypeReference<NullValueAsEmpty<EnumMap<ABC, String>>>() { }); in testEnumMapAsEmpty() 64 new TypeReference<NullContentAsEmpty<EnumMap<ABC, String>>>() { }); in testEnumMapNullsAsEmpty() 80 new TypeReference<NullContentSkip<EnumSet<ABC>>>() { }); in testEnumSetSkipNulls() 88 new TypeReference<NullContentSkip<EnumMap<ABC, String>>>() { }); in testEnumMapSkipNulls()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | MapKeyDeserializationTest.java | 10 import com.fasterxml.jackson.core.type.TypeReference; 78 …TypeReference<MapWrapper<Boolean, String>> type = new TypeReference<MapWrapper<Boolean, String>>()… in testBooleanMapKeyDeserialization() 91 … TypeReference<MapWrapper<Byte, String>> type = new TypeReference<MapWrapper<Byte, String>>() { }; in testByteMapKeyDeserialization() 99 …TypeReference<MapWrapper<Short, String>> type = new TypeReference<MapWrapper<Short, String>>() { }; in testShortMapKeyDeserialization() 107 …TypeReference<MapWrapper<Integer, String>> type = new TypeReference<MapWrapper<Integer, String>>()… in testIntegerMapKeyDeserialization() 115 … TypeReference<MapWrapper<Long, String>> type = new TypeReference<MapWrapper<Long, String>>() { }; in testLongMapKeyDeserialization() 123 …TypeReference<MapWrapper<Float, String>> type = new TypeReference<MapWrapper<Float, String>>() { }; in testFloatMapKeyDeserialization() 131 …TypeReference<MapWrapper<Double, String>> type = new TypeReference<MapWrapper<Double, String>>() {… in testDoubleMapKeyDeserialization() 147 new TypeReference<Map<FullName, Double>>() { }); in testDeserializeKeyViaFactory() 162 new TypeReference<MapWrapper<byte[], String>>() { }); in testByteArrayMapKeyDeserialization() [all …]
|
D | MapRelatedTypesDeserTest.java | 5 import com.fasterxml.jackson.core.type.TypeReference; 22 new TypeReference<List<Map.Entry<String,Long>>>() { }); in testMapEntrySimpleTypes() 33 new TypeReference<List<Map.Entry<Integer,StringWrapper>>>() { }); in testMapEntryWithStringBean() 47 new TypeReference<List<Map.Entry<Integer,StringWrapper>>>() { }); in testMapEntryFail() method 74 …final TypeReference<Map<String,IntWrapper>> type = new TypeReference<Map<String,IntWrapper>>() { }; in testSingletonMapRoundtrip()
|
D | MapDeserializationTest.java | 11 import com.fasterxml.jackson.core.type.TypeReference; 172 new TypeReference<Map<String, ObjectWrapper>>() { }); in testGenericMap() 209 (JSON, new TypeReference<HashMap<String,Integer>>() { }); in testExactStringIntMap() 231 (JSON, new TypeReference<HashMap<Integer,Object>>() { }); in testIntBooleanMap() 248 (JSON, new TypeReference<TreeMap<String,String>>() { }); in testExactStringStringMap() 270 (JSON, new TypeReference<Map<String,Integer>>() { }); in testGenericStringIntMap() 302 (JSON, new TypeReference<EnumMap<Key,String>>() { }); in testEnumMap() 324 (JSON, new TypeReference<Map<Key,Key>>() { }); in testMapWithEnums() 367 (JSON, new TypeReference<HashMap<Date,String>>() { }); in testDateMap() 396 (JSON, new TypeReference<HashMap<Calendar,String>>() { }); in testCalendarMap() [all …]
|
D | EnumMapDeserializationTest.java | 9 import com.fasterxml.jackson.core.type.TypeReference; 108 new TypeReference<EnumMap<TestEnum,String>>() { }); in testEnumMaps() 118 new TypeReference<EnumMap<LowerCaseEnum,String>>() { }) in testToStringEnumMaps() 202 .readerFor(new TypeReference<EnumMap<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsDefault() 209 .readerFor(new TypeReference<Map<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsDefault() 221 .readerFor(new TypeReference<EnumMap<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsNull() 228 .readerFor(new TypeReference<Map<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsNull()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/reference/ |
D | ImmutableTypeReference.java | 36 import org.jf.dexlib2.iface.reference.TypeReference; 51 public static ImmutableTypeReference of(@Nonnull TypeReference typeReference) { in of() 61 …mutableList<ImmutableTypeReference> immutableListOf(@Nullable List<? extends TypeReference> list) { in immutableListOf() 65 private static final ImmutableConverter<ImmutableTypeReference, TypeReference> CONVERTER = 66 new ImmutableConverter<ImmutableTypeReference, TypeReference>() { 68 protected boolean isImmutable(@Nonnull TypeReference item) { 74 protected ImmutableTypeReference makeImmutable(@Nonnull TypeReference item) {
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/ |
D | ArrayMergeTest.java | 8 import com.fasterxml.jackson.core.type.TypeReference; 39 …final JavaType type = MAPPER.getTypeFactory().constructType(new TypeReference<MergedX<Object[]>>()… in testObjectArrayMerging() 64 .readerFor(new TypeReference<MergedX<String[]>>() {}) in testStringArrayMerging() 77 .readerFor(new TypeReference<MergedX<boolean[]>>() {}) in testBooleanArrayMerging() 89 .readerFor(new TypeReference<MergedX<byte[]>>() {}) in testByteArrayMerging() 101 .readerFor(new TypeReference<MergedX<short[]>>() {}) in testShortArrayMerging() 113 .readerFor(new TypeReference<MergedX<char[]>>() {}) in testCharArrayMerging() 122 .readerFor(new TypeReference<MergedX<char[]>>() {}) in testCharArrayMerging() 133 .readerFor(new TypeReference<MergedX<int[]>>() {}) in testIntArrayMerging() 143 .readerFor(new TypeReference<MergedX<int[]>>() {}) in testIntArrayMerging() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/ |
D | TestGenerics.java | 4 import com.fasterxml.jackson.core.type.TypeReference; 70 new TypeReference<Wrapper<SimpleBean>>() { }); in testGenericWrapper() 87 new TypeReference<Wrapper<SimpleBean>>() { }); in testGenericWrapperWithSingleElementArray() 105 ("{\"value\": true}", new TypeReference<Wrapper<Boolean>>() { }); in testMultipleWrappers() 110 ("{\"value\": \"abc\"}", new TypeReference<Wrapper<String>>() { }); in testMultipleWrappers() 115 ("{\"value\": 7}", new TypeReference<Wrapper<Long>>() { }); in testMultipleWrappers() 127 ("[{\"value\": [true]}]", new TypeReference<Wrapper<Boolean>>() { }); in testMultipleWrappersSingleValueArray() 132 ("[{\"value\": [\"abc\"]}]", new TypeReference<Wrapper<String>>() { }); in testMultipleWrappersSingleValueArray() 137 ("[{\"value\": [7]}]", new TypeReference<Wrapper<Long>>() { }); in testMultipleWrappersSingleValueArray() 149 new TypeReference<Wrapper<SimpleBean>[]>() { }); in testArrayOfGenericWrappers() [all …]
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/type/ |
D | TypeReference.java | 27 public abstract class TypeReference<T> implements Comparable<TypeReference<T>> class 31 protected TypeReference() in TypeReference() method in TypeReference 55 public int compareTo(TypeReference<T> o) { return 0; } in compareTo()
|
/external/skqp/src/sksl/ir/ |
D | SkSLTypeReference.h | 20 struct TypeReference : public Expression { struct 21 TypeReference(const Context& context, int offset, const Type& value) in TypeReference() function 34 return std::unique_ptr<Expression>(new TypeReference(fOffset, fValue, &fType)); in clone() argument 42 TypeReference(int offset, const Type& value, const Type* type) in TypeReference() function
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/ |
D | CoerceContainersTest.java | 5 import com.fasterxml.jackson.core.type.TypeReference; 31 .constructType(new TypeReference<List<Double>>() { }); in testScalarCollections() 41 .constructType(new TypeReference<List<String>>() { }); in testStringCollections() 57 .constructType(new TypeReference<Map<Long, Boolean>>() { }); in testScalarMap() 67 .constructType(new TypeReference<EnumMap<ABC, Boolean>>() { }); in testEnumMap() 83 .constructType(new TypeReference<Object[]>() { }); in testObjectArray() 93 .constructType(new TypeReference<String[]>() { }); in testStringArray()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/reference/ |
D | BaseTypeReference.java | 34 import org.jf.dexlib2.iface.reference.TypeReference; 38 public abstract class BaseTypeReference implements TypeReference { 47 if (o instanceof TypeReference) { in equals() 48 return getType().equals(((TypeReference)o).getType()); in equals()
|
/external/skia/src/sksl/ir/ |
D | SkSLTypeReference.h | 20 class TypeReference final : public Expression { 24 TypeReference(const Context& context, int offset, const Type* value) in TypeReference() function 41 return std::unique_ptr<Expression>(new TypeReference(fOffset, &this->value(), in clone() 46 TypeReference(int offset, const Type* value, const Type* type) in TypeReference() function
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/ |
D | TestTypeFactory1604.java | 5 import com.fasterxml.jackson.core.type.TypeReference; 39 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedSimple() 54 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedNested() 69 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedSneaky() 86 JavaType type = tf.constructType(new TypeReference<TwoParam1604<String,List<Long>>>() { }); in testTwoParamSneakyCustom() 111 JavaType base = tf.constructType(new TypeReference<Data1604<String>>() { }); in testErrorForMismatch() 127 JavaType base = tf.constructType(new TypeReference<Either<Object, Object>>() { }); in testResolveGenericPartialSubtypes()
|
D | TestTypeResolution.java | 6 import com.fasterxml.jackson.core.type.TypeReference; 43 JavaType t = tf.constructType(new TypeReference<LongValuedMap<String>>() { }); in testMaps() 53 JavaType t = tf.constructType(new TypeReference<MyLongList<Integer>>() {}); in testListViaTypeRef() 79 t = tf.constructType(new TypeReference<DoubleRange>() { }); in testGeneric()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/debug/ |
D | BuilderStartLocal.java | 38 import org.jf.dexlib2.iface.reference.TypeReference; 45 @Nullable private final TypeReference type; 50 @Nullable TypeReference type, in BuilderStartLocal() 61 @Nullable @Override public TypeReference getTypeReference() { return type; } in getTypeReference()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | TypePool.java | 34 import org.jf.dexlib2.iface.reference.TypeReference; 41 implements TypeSection<CharSequence, CharSequence, TypeReference> { 62 @Override public int getItemIndex(@Nonnull TypeReference key) { in getItemIndex()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/ |
D | EnumCreatorTest.java | 10 import com.fasterxml.jackson.core.type.TypeReference; 208 new TypeReference<EnumMap<EnumWithCreator,String>>() {}); in testEnumWithCreatorEnumMaps() 214 new TypeReference<java.util.HashMap<EnumWithCreator,String>>() {}); in testEnumWithCreatorMaps() 220 new TypeReference<EnumSet<EnumWithCreator>>() {}); in testEnumWithCreatorEnumSets() 269 new TypeReference<EnumMap<EnumWithCreator,String>>() {}); in testDeserializerForCreatorWithEnumMaps() 300 new TypeReference<EnumSet<Enum929>>() {}); in testMultiArgEnumInCollections() 305 new TypeReference<List<Enum929>>() {}); in testMultiArgEnumInCollections()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/ |
D | TestTypedRootValueSerialization.java | 5 import com.fasterxml.jackson.core.type.TypeReference; 53 String listJson = mapper.writerFor(new TypeReference<List<Issue822Interface>>(){}) in testTypedLists() 63 String listJson = mapper.writerFor(new TypeReference<Map<String,Issue822Interface>>(){}) in testTypedMaps()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/ |
D | BuilderExceptionHandler.java | 35 import org.jf.dexlib2.iface.reference.TypeReference; 52 static BuilderExceptionHandler newExceptionHandler(@Nullable final TypeReference exceptionType, in newExceptionHandler() 66 @Nullable @Override public TypeReference getExceptionTypeReference() { in newExceptionHandler()
|
/external/jackson-databind/src/test/java/perf/ |
D | ManualReadWithTypeResolution.java | 6 import com.fasterxml.jackson.core.type.TypeReference; 21 private final TypeReference<?> _inputTypeRef; 43 _inputTypeRef = new TypeReference<List<String>>() { }; in ManualReadWithTypeResolution() 104 …protected final double testDeser(int reps, byte[] json, ObjectMapper mapper, TypeReference<?> type) in testDeser()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ |
D | PolymorphicList1451SerTest.java | 6 import com.fasterxml.jackson.core.type.TypeReference; 37 final TypeReference<?> typeRef = in testCollectionWithTypeInfo() 38 new TypeReference<Collection<A>>(){}; in testCollectionWithTypeInfo()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/type/ |
D | TypeReferenceTest.java | 128 TypeReference<?> ref = new TypeReference<List<String>>() { }; in testSimple() 137 Object ob = new TypeReference() { }; in testInvalid()
|