Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for checkNonnegative (7.79 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

      public static <T extends @Nullable Object> T get(
          Iterator<? extends T> iterator, int position, @ParametricNullness T defaultValue) {
        checkNonnegative(position);
        advance(iterator, position);
        return getNext(iterator, defaultValue);
      }
    
      static void checkNonnegative(int position) {
        if (position < 0) {
          throw new IndexOutOfBoundsException("position (" + position + ") must not be negative");
        }
      }
    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)
  2. guava/src/com/google/common/collect/Iterators.java

      public static <T extends @Nullable Object> T get(
          Iterator<? extends T> iterator, int position, @ParametricNullness T defaultValue) {
        checkNonnegative(position);
        advance(iterator, position);
        return getNext(iterator, defaultValue);
      }
    
      static void checkNonnegative(int position) {
        if (position < 0) {
          throw new IndexOutOfBoundsException("position (" + position + ") must not be negative");
        }
      }
    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)
  3. android/guava/src/com/google/common/collect/Sets.java

    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    
    import com.google.common.annotations.Beta;
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.CollectPreconditions.checkRemove;
    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    import static java.util.Objects.requireNonNull;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
Back to top