コード例 #1
0
 public Iterator<EventBean> iterator() {
   if (context.getCustomConfiguration() != null
       && context.getCustomConfiguration().equals(ITERATE)) {
     List<EventBean> events = new ArrayList<EventBean>();
     for (Object item : data) {
       events.add(context.getEventFactory().wrap(item));
     }
     return events.iterator();
   }
   return Collections.<EventBean>emptyList().iterator();
 }
コード例 #2
0
 public void update(EventBean[] newData, EventBean[] oldData) {
   lastUpdateNew = newData;
   lastUpdateOld = oldData;
   context.getOutputStream().update(newData, oldData);
 }