Пример #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();
 }
Пример #2
0
 @Override
 public int length() {
   return list.getLength();
 }
Пример #3
0
 @Override
 @SuppressWarnings({"unchecked"})
 protected E findNext() {
   return (E) list.item(++i);
 }