Home
last modified time | relevance | path

Searched refs:ObjectIntPair (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/
DObjectIntPair.cs9 internal struct ObjectIntPair<T> : IEquatable<ObjectIntPair<T>> where T : class struct
14 internal ObjectIntPair(T obj, int number) in ObjectIntPair() argument
20 public bool Equals(ObjectIntPair<T> other) in Equals() argument
28 if (obj is ObjectIntPair<T>) in Equals()
30 return Equals((ObjectIntPair<T>)obj); in Equals()
DExtensionRegistry.cs45 private IDictionary<ObjectIntPair<Type>, Extension> extensions;
52 extensions = new Dictionary<ObjectIntPair<Type>, Extension>(); in ExtensionRegistry()
55 private ExtensionRegistry(IDictionary<ObjectIntPair<Type>, Extension> collection) in ExtensionRegistry()
72 …return extensions.TryGetValue(new ObjectIntPair<Type>(target, WireFormat.GetTagFieldNumber(stream.… in ContainsInputField()
82 … extensions.Add(new ObjectIntPair<Type>(extension.TargetType, extension.FieldNumber), extension); in Add()
111 … return extensions.ContainsKey(new ObjectIntPair<Type>(item.TargetType, item.FieldNumber)); in Contains()
130 … extensions.Add(new ObjectIntPair<Type>(extension.TargetType, extension.FieldNumber), extension); in CopyTo()
152 return extensions.Remove(new ObjectIntPair<Type>(item.TargetType, item.FieldNumber)); in Remove()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DExtensionRegistryLite.java158 extensionsByNumber.get(new ObjectIntPair(containingTypeDefaultInstance, fieldNumber)); in findLiteExtensionByNumber()
164 new ObjectIntPair(extension.getContainingTypeDefaultInstance(), extension.getNumber()), in add()
194 new HashMap<ObjectIntPair, GeneratedMessageLite.GeneratedExtension<?, ?>>(); in ExtensionRegistryLite()
207 private final Map<ObjectIntPair, GeneratedMessageLite.GeneratedExtension<?, ?>>
215 private static final class ObjectIntPair { class in ExtensionRegistryLite
219 ObjectIntPair(final Object object, final int number) { in ObjectIntPair() method in ExtensionRegistryLite.ObjectIntPair
231 if (!(obj instanceof ObjectIntPair)) { in equals()
234 final ObjectIntPair other = (ObjectIntPair) obj; in equals()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptorPool.cs48 private readonly IDictionary<ObjectIntPair<IDescriptor>, FieldDescriptor> fieldsByNumber =
49 new Dictionary<ObjectIntPair<IDescriptor>, FieldDescriptor>();
51 … private readonly IDictionary<ObjectIntPair<IDescriptor>, EnumValueDescriptor> enumValuesByNumber =
52 new Dictionary<ObjectIntPair<IDescriptor>, EnumValueDescriptor>();
212 … fieldsByNumber.TryGetValue(new ObjectIntPair<IDescriptor>(messageDescriptor, number), out ret); in FindFieldByNumber()
219 … enumValuesByNumber.TryGetValue(new ObjectIntPair<IDescriptor>(enumDescriptor, number), out ret); in FindEnumValueByNumber()
231ObjectIntPair<IDescriptor> key = new ObjectIntPair<IDescriptor>(field.Proto.HasExtendee ? field.Ex… in AddFieldByNumber()
250ObjectIntPair<IDescriptor> key = new ObjectIntPair<IDescriptor>(enumValue.EnumDescriptor, enumValu… in AddEnumValueByNumber()
/external/protobuf/
DMakefile.am172 csharp/src/Google.Protobuf/ObjectIntPair.cs \