限制迭代次數如何限制了我的列表迭代器的結果呢?如何通過列表
try {
ArrayList<CalanderQueryOutput> results = new ArrayList<CalanderQueryOutput>();
List<?> eventsToday = (List<?>) filter.filter(calendar.getComponents(Component.VEVENT));
CalanderQueryOutput caldavOutput = new CalanderQueryOutput();
for (Iterator<?> i = eventsToday.iterator(); i.hasNext();) {
}
results.add(caldavOutput);
}
我想只列出最高十個結果
你的極限是什麼意思,上升到一定的數量和休息循環? – ant