Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for UnmodifiableListIterator (0.34 sec)

  1. android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java

        try {
          iterator.set("c");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      UnmodifiableListIterator<String> create() {
        final String[] array = {"a", "b", "c"};
    
        return new UnmodifiableListIterator<String>() {
          int i;
    
          @Override
          public boolean hasNext() {
            return i < array.length;
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java

        try {
          iterator.set("c");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      UnmodifiableListIterator<String> create() {
        final String[] array = {"a", "b", "c"};
    
        return new UnmodifiableListIterator<String>() {
          int i;
    
          @Override
          public boolean hasNext() {
            return i < array.length;
          }
    
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return unsafeDelegateList(Lists.subListImpl(this, fromIndex, toIndex));
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return new AbstractIndexedListIterator<E>(size(), index) {
          @Override
          protected E get(int index) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
  4. 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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  5. 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().
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  6. 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().
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableList.java

      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return new AbstractIndexedListIterator<E>(size(), index) {
          @Override
          protected E get(int index) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
Back to top