Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for forArrayWithPosition (0.23 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  2. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 20 03:33:06 GMT 2024
    - 50.6K bytes
    - Viewed (0)
  4. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
Back to top