Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for checkElementIndex (0.18 sec)

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

       * @throws IllegalArgumentException if {@code size} is negative
       */
      @CanIgnoreReturnValue
      public static int checkElementIndex(int index, int size) {
        return checkElementIndex(index, size, "index");
      }
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
    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/primitives/Ints.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkElementIndex;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkElementIndex;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndex;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    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)
  4. android/guava/src/com/google/common/util/concurrent/Striped.java

          this.locks = new AtomicReferenceArray<>(size);
          this.supplier = supplier;
        }
    
        @Override
        public L getAt(int index) {
          if (size != Integer.MAX_VALUE) {
            Preconditions.checkElementIndex(index, size());
          } // else no check necessary, all index values are valid
          ArrayReference<? extends L> existingRef = locks.get(index);
          L existing = existingRef == null ? null : existingRef.get();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       *
       * @throws IndexOutOfBoundsException if {@code index} is negative, or greater than or equal to
       *     {@link #length}
       */
      public int get(int index) {
        Preconditions.checkElementIndex(index, length());
        return array[start + index];
      }
    
      /**
       * Returns the smallest index for which {@link #get} returns {@code target}, or {@code -1} if no
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       *
       * @throws IndexOutOfBoundsException if {@code index} is negative, or greater than or equal to
       *     {@link #length}
       */
      public double get(int index) {
        Preconditions.checkElementIndex(index, length());
        return array[start + index];
      }
    
      /**
       * Returns the smallest index for which {@link #get} returns {@code target}, or {@code -1} if no
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Preconditions.java

       * @throws IllegalArgumentException if {@code size} is negative
       */
      @CanIgnoreReturnValue
      public static int checkElementIndex(int index, int size) {
        return checkElementIndex(index, size, "index");
      }
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Booleans.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkElementIndex;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Shorts.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkElementIndex;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       *
       * @throws IndexOutOfBoundsException if {@code index} is negative, or greater than or equal to
       *     {@link #length}
       */
      public long get(int index) {
        Preconditions.checkElementIndex(index, length());
        return array[start + index];
      }
    
      /**
       * Returns the smallest index for which {@link #get} returns {@code target}, or {@code -1} if no
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top