/** * Creates a list iterator for the sublist. * * @param subList the sublist to get an iterator for * @param fromIndex the index to start from, relative to the sublist */ protected internal virtual java.util.ListIterator <Object> createSubListListIterator(LinkedSubList subList, int fromIndex) { return(new LinkedSubListIterator(subList, fromIndex)); }
//----------------------------------------------------------------------- /** * Creates an iterator for the sublist. * * @param subList the sublist to get an iterator for */ protected internal virtual java.util.Iterator <Object> createSubListIterator(LinkedSubList subList) { return(createSubListListIterator(subList, 0)); }
/** * Constructs a new cursor. * * @param index the index to start from */ protected internal SubCursor(LinkedSubList sub, int index) : base((CursorableLinkedList)sub.parent, index + sub.offset) { this.sub = sub; }
protected internal LinkedSubListIterator(LinkedSubList sub, int startIndex) : base(sub.parent, startIndex + sub.offset) { this.sub = sub; }
//----------------------------------------------------------------------- /** * Creates a list iterator for the sublist. * * @param subList the sublist to get an iterator for * @param fromIndex the index to start from, relative to the sublist */ protected internal override java.util.ListIterator <Object> createSubListListIterator(LinkedSubList subList, int fromIndex) { SubCursor cursor = new SubCursor(subList, fromIndex); registerCursor(cursor); return(cursor); }