@Test public void testIndexOf() { StatementParameterList list = addEntries(new StatementParameterList(), 2); StringStatementParameter toAdd = new StringStatementParameter(id.create(new Object()), QueryType.constant, null, null); list.add(toAdd); assertEquals(3, list.size()); assertEquals(2, list.indexOf(toAdd)); }
@Override public int indexOf(Object o) { return getParameters().indexOf(o); }
StatementParameterList extends AbstractCollection<JdbcStatementParameter> implements StatementParameterCollection { @Override public int indexOf(Object o) { return getParameters().indexOf(o); } }
StatementParameterList extends AbstractCollection<JdbcStatementParameter> implements StatementParameterCollection { @Override public int indexOf(Object o) { return getParameters().indexOf(o); } StatementParameterList();  StatementParameterList(List<JdbcStatementParameter> parameters); }
StatementParameterList extends AbstractCollection<JdbcStatementParameter> implements StatementParameterCollection { @Override public int indexOf(Object o) { return getParameters().indexOf(o); } StatementParameterList();  StatementParameterList(List<JdbcStatementParameter> parameters); @Override JdbcStatementParameter getParameterByName(String name); @Override boolean add(JdbcStatementParameter parameter); @Override Iterator<JdbcStatementParameter> iterator(); @Override int size(); @Override void add(int index, JdbcStatementParameter element); @Override boolean addAll(Collection<? extends JdbcStatementParameter> c); @Override boolean addAll(int index, Collection<? extends JdbcStatementParameter> c); @Override JdbcStatementParameter get(int index); @Override int indexOf(Object o); @Override int lastIndexOf(Object o); @Override ListIterator<JdbcStatementParameter> listIterator(); @Override ListIterator<JdbcStatementParameter> listIterator(int index); @Override JdbcStatementParameter remove(int index); @Override JdbcStatementParameter set(int index, JdbcStatementParameter element); @Override List<JdbcStatementParameter> subList(int fromIndex, int toIndex); @Override void clear(); List<JdbcStatementParameter> getParameters(); void setParameters(List<JdbcStatementParameter> parameters); }
StatementParameterList extends AbstractCollection<JdbcStatementParameter> implements StatementParameterCollection { @Override public int indexOf(Object o) { return getParameters().indexOf(o); } StatementParameterList();  StatementParameterList(List<JdbcStatementParameter> parameters); @Override JdbcStatementParameter getParameterByName(String name); @Override boolean add(JdbcStatementParameter parameter); @Override Iterator<JdbcStatementParameter> iterator(); @Override int size(); @Override void add(int index, JdbcStatementParameter element); @Override boolean addAll(Collection<? extends JdbcStatementParameter> c); @Override boolean addAll(int index, Collection<? extends JdbcStatementParameter> c); @Override JdbcStatementParameter get(int index); @Override int indexOf(Object o); @Override int lastIndexOf(Object o); @Override ListIterator<JdbcStatementParameter> listIterator(); @Override ListIterator<JdbcStatementParameter> listIterator(int index); @Override JdbcStatementParameter remove(int index); @Override JdbcStatementParameter set(int index, JdbcStatementParameter element); @Override List<JdbcStatementParameter> subList(int fromIndex, int toIndex); @Override void clear(); List<JdbcStatementParameter> getParameters(); void setParameters(List<JdbcStatementParameter> parameters);  }