/** * Gets list of {@link Row}s to be displayed. * * The {@link Row} object is reused, so every value * in collection returns the same object (but with different values.) */ public List<Row> getRows() { return new AbstractList<Row>() { final Row row = new Row(); public Row get(int index) { row.index = index; return row; } public int size() { return ySize; } }; }
/** * Gets list of {@link Row}s to be displayed. * * The {@link Row} object is reused, so every value in collection returns * the same object (but with different values.) */ public List<Row> getRows() { return new AbstractList<Row>() { final Row row = new Row(); public Row get(int index) { row.index = index; return row; } public int size() { return ySize; } }; }
/** * Gets list of {@link Row}s to be displayed. * * The {@link Row} object is reused, so every value * in collection returns the same object (but with different values.) */ public List<Row> getRows() { return new AbstractList<Row>() { final Row row = new Row(); public Row get(int index) { row.index = index; return row; } public int size() { return ySize; } }; }
/** * Gets list of {@link Row}s to be displayed. * * The {@link Row} object is reused, so every value * in collection returns the same object (but with different values.) */ public List<Row> getRows() { return new AbstractList<Row>() { final Row row = new Row(); public Row get(int index) { row.index = index; return row; } public int size() { return ySize; } }; }
/** * Gets list of {@link Row}s to be displayed. * * The {@link Row} object is reused, so every value * in collection returns the same object (but with different values.) */ public List<Row> getRows() { return new AbstractList<Row>() { final Row row = new Row(); public Row get(int index) { row.index = index; return row; } public int size() { return ySize; } }; }