Lines Matching defs:cursor
607 private int cursor = head;
622 return cursor != fence;
626 if (cursor == fence)
628 E result = elements[cursor];
633 lastRet = cursor;
634 cursor = (cursor + 1) & (elements.length - 1);
642 cursor = (cursor - 1) & (elements.length - 1);
652 * tail instead of head for initial cursor, and head instead of
655 private int cursor = tail;
660 return cursor != fence;
664 if (cursor == fence)
666 cursor = (cursor - 1) & (elements.length - 1);
667 E result = elements[cursor];
670 lastRet = cursor;
678 cursor = (cursor + 1) & (elements.length - 1);