Class RowKeyTableIterable<T>
java.lang.Object
net.codecrete.windowsapi.winmd.tables.RowKeyTableIterable<T>
- Type Parameters:
T- table row type
- All Implemented Interfaces:
Iterable<T>
Iterable allowing to iterate a range of rows of a metadata table.
The rows within the range have the same primary or foreign key. The table must be sorted by the key field, and the key field must be the first field within the row. The
-
Constructor Summary
ConstructorsConstructorDescriptionRowKeyTableIterable(Table table, int keyValue, int keyWidth, Function<Integer, T> creator) Creates a new instance for the given table and key. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RowKeyTableIterable
Creates a new instance for the given table and key.- Parameters:
table- the metadata tablekeyValue- the value of the keykeyWidth- the width of the key field (in bytes)creator- a lambda creating a new table row instance for a given index
-
-
Method Details
-
iterator
-