/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }
/** * Gets the index of the given prototype, which must have * been added to this instance. * * @param prototype {@code non-null;} the prototype to look up * @return {@code >= 0;} the reference's index */ public int indexOf(Prototype prototype) { if (prototype == null) { throw new NullPointerException("prototype == null"); } throwIfNotPrepared(); ProtoIdItem item = protoIds.get(prototype); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); }