Class TableRangeIterable<T>

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

public class TableRangeIterable<T> extends Object implements Iterable<T>
Iterable allowing to iterate a range of rows within a metadata table.
  • Constructor Details

    • TableRangeIterable

      public TableRangeIterable(int startIndex, int endIndex, Function<Integer,T> creator)
      Creates a new instance.

      If startIndex is greater than endIndex, the iterator does not provide any elements.

      Parameters:
      startIndex - the index of the range start (inclusive)
      endIndex - the index of the range end (inclusive)
      creator - a lambda creating a table row instance for a given index
  • Method Details