| Removed Methods |
T find(Iterator<?, extends, T>, Predicate<?, super, T>, T)
|
Returns the first element in {@code iterator} that satisfies the given predicate. |
T find(Iterator<T>, Predicate<?, super, T>)
|
Returns the first element in {@code iterator} that satisfies the given predicate; use this
method only when such an element is known to exist. |
T get(Iterator<?, extends, T>, int, T)
|
Advances {@code iterator} {@code position + 1} times, returning the element at the {@code
position}th position or {@code defaultValue} otherwise. |
T get(Iterator<T>, int)
|
Advances {@code iterator} {@code position + 1} times, returning the element at the {@code
position}th position. |
T getLast(Iterator<?, extends, T>, T)
|
Advances {@code iterator} to the end, returning the last element or {@code defaultValue} if the
iterator is empty. |
T getLast(Iterator<T>)
|
Advances {@code iterator} to the end, returning the last element. |
T getOnlyElement(Iterator<?, extends, T>, T)
|
Returns the single element contained in {@code iterator}, or {@code defaultValue} if the
iterator is empty. |
T getOnlyElement(Iterator<T>)
|
Returns the single element contained in {@code iterator}. |
| Added Methods |
(T extends Object) find(Iterator<?, extends, T>, Predicate<?, super, T>, T, extends, Object)
|
Returns the first element in {@code iterator} that satisfies the given predicate. |
(T extends Object) find(Iterator<T>, Predicate<?, super, T>)
|
Returns the first element in {@code iterator} that satisfies the given predicate; use this
method only when such an element is known to exist. |
(T extends Object) get(Iterator<?, extends, T>, int, T, extends, Object)
|
Advances {@code iterator} {@code position + 1} times, returning the element at the {@code
position}th position or {@code defaultValue} otherwise. |
(T extends Object) get(Iterator<T>, int)
|
Advances {@code iterator} {@code position + 1} times, returning the element at the {@code
position}th position. |
(T extends Object) getLast(Iterator<?, extends, T>, T, extends, Object)
|
Advances {@code iterator} to the end, returning the last element or {@code defaultValue} if the
iterator is empty. |
(T extends Object) getLast(Iterator<T>)
|
Advances {@code iterator} to the end, returning the last element. |
(T extends Object) getOnlyElement(Iterator<?, extends, T>, T, extends, Object)
|
Returns the single element contained in {@code iterator}, or {@code defaultValue} if the
iterator is empty. |
(T extends Object) getOnlyElement(Iterator<T>)
|
Returns the single element contained in {@code iterator}. |
| Changed Methods |
boolean contains(Iterator<?>, Object)
|
Change in signature from (java.util.Iterator>, Object) to (java.util.Iterator>, java.lang.Object).
|
Returns {@code true} if {@code iterator} contains {@code element}. |
int frequency(Iterator<?>, Object)
|
Change in signature from (java.util.Iterator>, Object) to (java.util.Iterator>, java.lang.Object).
|
Returns the number of elements in the specified iterator that equal the specified object. |
T extends Object getNext(Iterator<?, extends, T>, T, extends, Object)
|
Change in return type from T to (T extends Object).
Change in signature from (Iterator<? extends T>, T) to (Iterator<? extends T>, T extends Object).
|
Returns the next element in {@code iterator} or {@code defaultValue} if the iterator is empty. |
UnmodifiableIterator<T> singletonIterator(T extends Object)
|
Change in signature from T to (T extends Object).
|
Returns an iterator containing only {@code value}. |