(int position)
| 875 | } |
| 876 | |
| 877 | static void checkNonnegative(int position) { |
| 878 | if (position < 0) { |
| 879 | throw new IndexOutOfBoundsException("position (" + position + ") must not be negative"); |
| 880 | } |
| 881 | } |
| 882 | |
| 883 | /** |
| 884 | * Returns the next element in {@code iterator} or {@code defaultValue} if the iterator is empty. |
no outgoing calls