public int columnIndex ( final int _tableIndex , final String _columnName ) { final Optional < Column > colOpt = getColumns ( ) . stream ( ) . filter ( column -> column . tableIndex == _tableIndex && column . columnName . equals ( _columnName ) ) . findFirst ( ) ; final int ret ; if ( colOpt . isPresent ( ) ) { ret = getColumns ( ) . indexOf ( colOpt . get ( ) ) ; } else { columns . add ( new Column ( tablePrefix , _tableIndex , _columnName ) ) ; ret = getColumnIdx ( ) ; } return ret ; }
Column index .