ArrayList<Row_zmarket> toReturn = new ArrayList<Row_zmarket>();
Iterator<Row_zmarket> iterator = zmarketList.iterator();
while (iterator.hasNext()) {
Row_zmarket row = (Row_zmarket) iterator.next();
if ( (row.getVirtualTime().equals(beginDate) || row.getVirtualTime().after(beginDate)) && (row.getVirtualTime().equals(endDate) || row.getVirtualTime().before(endDate))) {
toReturn.add(row);
}
}
return toReturn;