Home
last modified time | relevance | path

Searched refs:TypeKey (Results 1 – 14 of 14) sorted by relevance

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/
DSerializerCache.java8 import com.fasterxml.jackson.databind.util.TypeKey;
33 private final HashMap<TypeKey, JsonSerializer<Object>> _sharedMap
34 = new HashMap<TypeKey, JsonSerializer<Object>>(64);
85 return _sharedMap.get(new TypeKey(type, false)); in untypedValueSerializer()
92 return _sharedMap.get(new TypeKey(type, false)); in untypedValueSerializer()
99 return _sharedMap.get(new TypeKey(type, true)); in typedValueSerializer()
106 return _sharedMap.get(new TypeKey(cls, true)); in typedValueSerializer()
124 if (_sharedMap.put(new TypeKey(type, true), ser) == null) { in addTypedSerializer()
134 if (_sharedMap.put(new TypeKey(cls, true), ser) == null) { in addTypedSerializer()
146 if (_sharedMap.put(new TypeKey(type, false), ser) == null) { in addAndResolveNonTypedSerializer()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/impl/
DReadOnlyClassToSerializerMap.java7 import com.fasterxml.jackson.databind.util.TypeKey;
26 public ReadOnlyClassToSerializerMap(Map<TypeKey,JsonSerializer<Object>> serializers) in ReadOnlyClassToSerializerMap() argument
32 for (Map.Entry<TypeKey,JsonSerializer<Object>> entry : serializers.entrySet()) { in ReadOnlyClassToSerializerMap()
33 TypeKey key = entry.getKey(); in ReadOnlyClassToSerializerMap()
54 public static ReadOnlyClassToSerializerMap from(HashMap<TypeKey, JsonSerializer<Object>> src) { in from() argument
68 Bucket bucket = _buckets[TypeKey.typedHash(type) & _mask]; in typedValueSerializer()
85 Bucket bucket = _buckets[TypeKey.typedHash(type) & _mask]; in typedValueSerializer()
102 Bucket bucket = _buckets[TypeKey.untypedHash(type) & _mask]; in untypedValueSerializer()
119 Bucket bucket = _buckets[TypeKey.untypedHash(type) & _mask]; in untypedValueSerializer()
150 public Bucket(Bucket next, TypeKey key, JsonSerializer<Object> value) in Bucket()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DTypeKey.java10 public class TypeKey class
25 public TypeKey() { } in TypeKey() method in TypeKey
27 public TypeKey(TypeKey src) { in TypeKey() method in TypeKey
34 public TypeKey(Class<?> key, boolean typed) { in TypeKey() method in TypeKey
41 public TypeKey(JavaType key, boolean typed) { in TypeKey() method in TypeKey
121 TypeKey other = (TypeKey) o; in equals()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DEncodedValueWriter.java45 public abstract class EncodedValueWriter<StringKey, TypeKey, FieldRefKey extends FieldReference,
50 @Nonnull private final TypeSection<?, TypeKey, ?> typeSection;
55 …@Nonnull private final AnnotationSection<StringKey, TypeKey, ?, AnnotationElement, EncodedValue> a…
60 @Nonnull TypeSection<?, TypeKey, ?> typeSection, in EncodedValueWriter() argument
65 …@Nonnull AnnotationSection<StringKey, TypeKey, ?, AnnotationElement, EncodedValue> annotationSecti… in EncodedValueWriter()
78 public void writeAnnotation(TypeKey annotationType, in writeAnnotation()
153 public void writeType(@Nonnull TypeKey value) throws IOException { in writeType()
DClassSection.java47 public interface ClassSection<StringKey extends CharSequence, TypeKey extends CharSequence, TypeLis…
51 @Nullable Map.Entry<? extends ClassKey, Integer> getClassEntryByType(@Nullable TypeKey key); in getClassEntryByType()
53 @Nonnull TypeKey getType(@Nonnull ClassKey key); in getType()
55 @Nullable TypeKey getSuperclass(@Nonnull ClassKey key); in getSuperclass()
81 @Nullable TypeKey getExceptionType(@Nonnull ExceptionHandler handler); in getExceptionType()
93 …void writeDebugItem(@Nonnull DebugWriter<StringKey, TypeKey> writer, DebugItem debugItem) throws I… in writeDebugItem()
DTypeSection.java38 …blic interface TypeSection<StringKey, TypeKey, TypeRef extends TypeReference> extends NullableInde…
39 @Nonnull StringKey getString(@Nonnull TypeKey key); in getString()
DFieldSection.java38 public interface FieldSection<StringKey, TypeKey, FieldRefKey extends FieldReference, FieldKey>
40 @Nonnull TypeKey getDefiningClass(@Nonnull FieldRefKey key); in getDefiningClass()
41 @Nonnull TypeKey getFieldType(@Nonnull FieldRefKey key); in getFieldType()
DDebugWriter.java41 public class DebugWriter<StringKey extends CharSequence, TypeKey extends CharSequence> {
43 @Nonnull private final TypeSection<StringKey, TypeKey, ?> typeSection;
49 @Nonnull TypeSection<StringKey, TypeKey, ?> typeSection, in DebugWriter() argument
63 @Nullable TypeKey type, in writeStartLocal()
DTypeListSection.java38 public interface TypeListSection<TypeKey, TypeListKey> extends NullableOffsetSection<TypeListKey> {
40 @Nonnull Collection<? extends TypeKey> getTypes(@Nullable TypeListKey key); in getTypes()
DProtoSection.java37 public interface ProtoSection<StringKey, TypeKey, ProtoKey, TypeListKey> extends IndexSection<Proto…
39 @Nonnull TypeKey getReturnType(@Nonnull ProtoKey key); in getReturnType()
DAnnotationSection.java37 public interface AnnotationSection<StringKey, TypeKey, AnnotationKey, AnnotationElement, EncodedVal…
40 @Nonnull TypeKey getType(@Nonnull AnnotationKey key); in getType()
DMethodSection.java39 public interface MethodSection<StringKey, TypeKey, ProtoRefKey extends MethodProtoReference,
43 @Nonnull TypeKey getDefiningClass(@Nonnull MethodRefKey key); in getDefiningClass()
DDexWriter.java81 … StringKey extends CharSequence, StringRef extends StringReference, TypeKey extends CharSequence,
94 TypeSectionType extends TypeSection<StringKey, TypeKey, TypeRef>,
95 ProtoSectionType extends ProtoSection<StringKey, TypeKey, ProtoRefKey, TypeListKey>,
96 FieldSectionType extends FieldSection<StringKey, TypeKey, FieldRefKey, FieldKey>,
97 … MethodSectionType extends MethodSection<StringKey, TypeKey, ProtoRefKey, MethodRefKey, MethodKey>,
98 …ClassSectionType extends ClassSection<StringKey, TypeKey, TypeListKey, ClassKey, FieldKey, MethodK…
102 TypeListSectionType extends TypeListSection<TypeKey, TypeListKey>,
103 …AnnotationSectionType extends AnnotationSection<StringKey, TypeKey, AnnotationKey, AnnotationEleme…
220 …protected class InternalEncodedValueWriter extends EncodedValueWriter<StringKey, TypeKey, FieldRef…
265 for (Entry<? extends TypeKey, Integer> typeReference: typeSection.getItems()) {
[all …]
/external/rust/crates/bindgen/src/ir/
Dcontext.rs301 enum TypeKey { enum
314 types: HashMap<TypeKey, TypeId>,
709 TypeKey::Declaration(declaration) in add_item()
711 TypeKey::USR(usr) in add_item()
717 TypeKey::Declaration(declaration) in add_item()
1791 .get(&TypeKey::Declaration(*decl.cursor())) in get_resolved_type()
1795 .and_then(|usr| self.types.get(&TypeKey::USR(usr))) in get_resolved_type()