Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for forArrayWithPosition (0.18 sec)

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

        String[] array = {"foo", "bar"};
        assertFalse(Iterators.forArrayWithPosition(array, 2).hasNext());
        try {
          Iterators.forArrayWithPosition(array, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          Iterators.forArrayWithPosition(array, 3);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

       * {@link ImmutableList#copyOf(Object[])}}, or {@link ImmutableList#of}.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> UnmodifiableIterator<T> forArray(T... array) {
        return forArrayWithPosition(array, 0);
      }
    
      /**
       * Returns a list iterator containing the elements in the specified {@code array} in order,
       * starting at the specified {@code position}.
       *
    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)
Back to top