Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for checkNonnegative (0.12 sec)

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

    import static com.google.common.base.Preconditions.checkPositionIndex;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.ObjectArrays.checkElementsNotNull;
    import static com.google.common.collect.RegularImmutableList.EMPTY;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSetMultimap.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 java.lang.Math.max;
    import static java.util.Arrays.asList;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.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 static java.lang.Math.min;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Predicate;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSetMultimap.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 java.lang.Math.max;
    import static java.util.Arrays.asList;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static java.util.Arrays.sort;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addCopies(E element, int occurrences) {
          checkNotNull(element);
          CollectPreconditions.checkNonnegative(occurrences, "occurrences");
          if (occurrences == 0) {
            return this;
          }
          maintenance();
          elements[length] = element;
          counts[length] = occurrences;
          length++;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Ordering.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 java.util.Arrays.asList;
    import static java.util.Arrays.sort;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.sort;
    import static java.util.Collections.unmodifiableList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableList.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.ObjectArrays.checkElementsNotNull;
    import static com.google.common.collect.RegularImmutableList.EMPTY;
    import static java.util.Objects.requireNonNull;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. 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");
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Ordering.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 java.util.Arrays.asList;
    import static java.util.Arrays.sort;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.sort;
    import static java.util.Collections.unmodifiableList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top