Adempiere 3.5.2a

org.compiere.model
Class POIterator<T extends PO>

java.lang.Object
  extended by 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 Summary
POIterator(MTable table, List<Object[]> idList, String trxName)
           
 
Method Summary
 T get(int index)
           
 boolean hasNext()
           
 T next()
           
 void remove()
          not supported.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POIterator

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

hasNext

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

next

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

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

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.