- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for UnmodifiableListIterator (0.2 seconds)
-
android/guava/src/com/google/common/collect/UnmodifiableListIterator.java
* * @since 7.0 * @author Louis Wasserman */ @GwtCompatible public abstract class UnmodifiableListIterator<E extends @Nullable Object> extends UnmodifiableIterator<E> implements ListIterator<E> { /** Constructor for use by subclasses. */ protected UnmodifiableListIterator() {} /** * Guaranteed to throw an exception and leave the underlying data unmodified. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
assertThat(iterator.previous()).isEqualTo("b"); assertThrows(UnsupportedOperationException.class, () -> iterator.set("c")); } UnmodifiableListIterator<String> create() { String[] array = {"a", "b", "c"}; return new UnmodifiableListIterator<String>() { int i; @Override public boolean hasNext() { return i < array.length; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
assertThat(iterator.previous()).isEqualTo("b"); assertThrows(UnsupportedOperationException.class, () -> iterator.set("c")); } UnmodifiableListIterator<String> create() { String[] array = {"a", "b", "c"}; return new UnmodifiableListIterator<String>() { int i; @Override public boolean hasNext() { return i < array.length; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableAsList.java
} ImmutableList<? extends E> delegateList() { return delegateList; } @SuppressWarnings("unchecked") // safe covariant cast! @Override public UnmodifiableListIterator<E> listIterator(int index) { return (UnmodifiableListIterator<E>) delegateList.listIterator(index); } @GwtIncompatible // not present in emulated superclass @Override int copyIntoArray(@Nullable Object[] dst, int offset) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 2.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableList.java
public E get(int index) { return (E) array[index]; } @SuppressWarnings("unchecked") @Override public UnmodifiableListIterator<E> listIterator(int index) { // for performance // The fake cast to E is safe because the creation methods only allow E's return (UnmodifiableListIterator<E>) Iterators.forArrayWithPosition(array, index); } @Override public Spliterator<E> spliterator() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableAsList.java
} ImmutableList<? extends E> delegateList() { return delegateList; } @SuppressWarnings("unchecked") // safe covariant cast! @Override public UnmodifiableListIterator<E> listIterator(int index) { return (UnmodifiableListIterator<E>) delegateList.listIterator(index); } @GwtIncompatible // not present in emulated superclass @Override public void forEach(Consumer<? super E> action) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 2.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractIndexedListIterator.java
* {@link #set}, or {@link #add}. * * @author Jared Levy */ @GwtCompatible abstract class AbstractIndexedListIterator<E extends @Nullable Object> extends UnmodifiableListIterator<E> { private final int size; private int position; /** Returns the element with the specified index. This method is called by {@link #next()}. */ @ParametricNullnessCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
return listIterator(); } @Override public UnmodifiableListIterator<E> listIterator() { return listIterator(0); } @SuppressWarnings("unchecked") @Override public UnmodifiableListIterator<E> listIterator(int index) { checkPositionIndex(index, size()); if (isEmpty()) { return (UnmodifiableListIterator<E>) EMPTY_ITR; } else { return new Itr<E>(this, index);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/package-info.java
* </ul> * * <h2>Abstract implementations</h2> * * <ul> * <li>{@link AbstractIterator} * <li>{@link AbstractSequentialIterator} * <li>{@link UnmodifiableIterator} * <li>{@link UnmodifiableListIterator} * </ul> * * <h2>Forwarding collections</h2> * * We provide implementations of collections that forward all method calls to a delegate collection
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java
* {@link #set}, or {@link #add}. * * @author Jared Levy */ @GwtCompatible abstract class AbstractIndexedListIterator<E extends @Nullable Object> extends UnmodifiableListIterator<E> { private final int size; private int position; /** Returns the element with the specified index. This method is called by {@link #next()}. */ @ParametricNullnessCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.2K bytes - Click Count (0)