- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UnmodifiableListIterator (0.12 sec)
-
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
assertEquals("b", iterator.previous()); assertThrows(UnsupportedOperationException.class, () -> iterator.set("c")); } UnmodifiableListIterator<String> create() { final String[] array = {"a", "b", "c"}; return new UnmodifiableListIterator<String>() { int i; @Override public boolean hasNext() { return i < array.length; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.8K bytes - Viewed (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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 27.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
*/ // Casting to any type is safe since there are no actual elements. @SuppressWarnings("unchecked") static <T extends @Nullable Object> UnmodifiableListIterator<T> emptyListIterator() { return (UnmodifiableListIterator<T>) ArrayItr.EMPTY; } /** * This is an enum singleton rather than an anonymous class so ProGuard can figure out it's only * referenced by emptyModifiableIterator().
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0)