Class RowKeyTableIterable<T>

java.lang.Object
net.codecrete.windowsapi.winmd.tables.RowKeyTableIterable<T>
Type Parameters:
T - table row type
All Implemented Interfaces:
Iterable<T>

public class RowKeyTableIterable<T> extends Object implements 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 Details

    • RowKeyTableIterable

      public RowKeyTableIterable(Table table, int keyValue, int keyWidth, Function<Integer,T> creator)
      Creates a new instance for the given table and key.
      Parameters:
      table - the metadata table
      keyValue - the value of the key
      keyWidth - the width of the key field (in bytes)
      creator - a lambda creating a new table row instance for a given index
  • Method Details