cleaning up FloatHash, getting to work on the others, fix iterator in Table

This commit is contained in:
Ben Fry
2013-04-28 10:40:59 -04:00
parent be01dcb8c5
commit 75b5bc9489
5 changed files with 372 additions and 132 deletions

View File

@@ -1764,8 +1764,12 @@ public class Table {
}
public Iterator<TableRow> rows(int[] indices) {
return new RowIndexIterator(this, indices);
public Iterable<TableRow> rows(final int[] indices) {
return new Iterable<TableRow>() {
public Iterator<TableRow> iterator() {
return new RowIndexIterator(Table.this, indices);
}
};
}