Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for checkNonnegative (0.13 sec)

  1. guava/src/com/google/common/collect/ImmutableMap.java

    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static java.lang.System.arraycopy;
    import static java.util.Arrays.sort;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMap.java

    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static java.lang.System.arraycopy;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

      private HashBiMap(int expectedSize) {
        init(expectedSize);
      }
    
      @SuppressWarnings("unchecked")
      void init(int expectedSize) {
        CollectPreconditions.checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, 1.0);
        size = 0;
    
        keys = (K[]) new Object[expectedSize];
        values = (V[]) new Object[expectedSize];
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  4. 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 static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       */
      @ParametricNullness
      public static <T extends @Nullable Object> T get(
          Iterable<? extends T> iterable, int position, @ParametricNullness T defaultValue) {
        checkNotNull(iterable);
        Iterators.checkNonnegative(position);
        if (iterable instanceof List) {
          List<? extends T> list = Lists.cast(iterable);
          return (position < list.size()) ? list.get(position) : defaultValue;
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  6. 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;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

    import static com.google.common.base.Predicates.compose;
    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    import static com.google.common.collect.Sets.newHashSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Maps.java

    import static com.google.common.base.Predicates.compose;
    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    import static com.google.common.collect.Sets.newHashSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top