Home | History | Annotate | Download | only in file

Lines Matching full:prototype

21 import com.android.dx.rop.type.Prototype;
28 * Proto (method prototype) identifiers list section of a
35 private final TreeMap<Prototype, ProtoIdItem> protoIds;
45 protoIds = new TreeMap<Prototype, ProtoIdItem>();
102 * @param prototype {@code non-null;} the prototype to intern
105 public synchronized ProtoIdItem intern(Prototype prototype) {
106 if (prototype == null) {
107 throw new NullPointerException("prototype == null");
112 ProtoIdItem result = protoIds.get(prototype);
115 result = new ProtoIdItem(prototype);
116 protoIds.put(prototype, result);
123 * Gets the index of the given prototype, which must have
126 * @param prototype {@code non-null;} the prototype to look up
129 public int indexOf(Prototype prototype) {
130 if (prototype == null) {
131 throw new NullPointerException("prototype == null");
136 ProtoIdItem item = protoIds.get(prototype);