Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava/src/com/google/common/base/Preconditions.java

       * @throws IllegalArgumentException if {@code size} is negative
       */
      @CanIgnoreReturnValue
      public static int checkPositionIndex(int index, int size) {
        return checkPositionIndex(index, size, "index");
      }
    
      /**
       * Ensures that {@code index} specifies a valid <i>position</i> in an array, list or string of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

       */
      static <T extends @Nullable Object> UnmodifiableListIterator<T> forArrayWithPosition(
          T[] array, int position) {
        if (array.length == 0) {
          Preconditions.checkPositionIndex(position, array.length); // otherwise checked in ArrayItr
          return emptyListIterator();
        }
        return new ArrayItr<>(array, 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