Results implements ImmutableBean { public int getColumnIndex(String columnName) { Integer columnIndex = _columnIndices.get(columnName); if (columnIndex == null) { throw new IllegalArgumentException("No column found named " + columnName); } return columnIndex; } Results(List<String> columnNames, List<ResultRow> rows,
          Map<String, ResultItem> nonPortfolioResults, boolean isPendingMarketData,
          ViewTimer timer); @ImmutableConstructor private  Results(List<String> columnNames,
                  List<ResultRow> rows,
                  Map<String, ResultItem> nonPortfolioResults,
                  boolean isPendingMarketData,
                  ViewTimer timer,
                  ViewInputs viewInputs); Results withViewInputs(ViewInputs viewInputs); ResultRow get(int rowIndex); ResultItem get(int rowIndex, int columnIndex); ResultItem get(int rowIndex, String columnName); ResultItem get(String nonPortfolioOutputName); int getColumnIndex(String columnName); @Override String toString(); static Results.Meta meta(); static Results.Builder builder(); @Override Results.Meta metaBean(); @Override Property<R> property(String propertyName); @Override Set<String> propertyNames(); List<String> getColumnNames(); List<ResultRow> getRows(); Map<String, ResultItem> getNonPortfolioResults(); boolean isPendingMarketData(); ViewTimer getViewTimer(); ViewInputs getViewInputs(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void getColumnIndex() { assertEquals(0, RESULTS.getColumnIndex("col1")); assertEquals(1, RESULTS.getColumnIndex("col2")); }
@Test(expectedExceptions = IllegalArgumentException.class) public void getInvalidColumnIndex() { RESULTS.getColumnIndex("foo"); }