Class POIterator<T extends PO>

java.lang.Object
org.compiere.model.POIterator<T>
All Implemented Interfaces:
Iterator<T>

public class POIterator<T extends PO> extends Object implements Iterator<T>
Iterator implementation to fetch PO one at a time using a prefetch ID list.
Author:
Low Heng Sin
  • Constructor Details

    • POIterator

      public POIterator(MTable table, List<Object[]> idList, String trxName)
      Parameters:
      table -
      idList -
      trxName -
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T extends PO>
      See Also:
    • next

      public T next()
      Specified by:
      next in interface Iterator<T extends PO>
      See Also:
    • remove

      public void remove()
      not supported.
      Specified by:
      remove in interface Iterator<T extends PO>
    • size

      public int size()
      Returns:
      number of records
    • get

      public T get(int index)
      Parameters:
      index -
      Returns:
      PO or null if index is invalid