Exemplo n.º 1
0
 static ListIterator<XSObject> listIteratorFromXSObjectList(XSObjectList list) {
   ArrayList<XSObject> objects = new ArrayList<XSObject>(list.getLength());
   for (int i = 0; i < list.getLength(); i++) {
     if (list.item(i) != null) {
       objects.add(list.item(i));
     }
   }
   return objects.listIterator();
 }
Exemplo n.º 2
0
 @Override
 @SuppressWarnings({"unchecked"})
 protected E findNext() {
   return (E) list.item(++i);
 }