- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
/** * Returns the last element of this list. * If the list is empty, it returns {@code null}. * @return the last element of this list */ public T getLast() { if (isEmpty()) return null; else return unsafeGet(size - 1); }
/** * Returns the element at the specified position in this list. * * @param index index of the element to return * @return the element at the specified position in this list * @throws IndexOutOfBoundsException if the index is out of range * (<tt>index < 0 || index >= size()</tt>) */ @Override public T get(int i) { rangeCheck(i); return unsafeGet(i); }