Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 611 for negative (0.1 sec)

  1. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

        try {
          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // CountDownLatch treats negative timeouts just like zero.
              return latch.await(remainingNanos, NANOSECONDS);
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

       * @return a new, empty {@code ObjectCountHashMap} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
      static <K extends @Nullable Object> ObjectCountHashMap<K> createWithExpectedSize(
          int expectedSize) {
        return new ObjectCountHashMap<K>(expectedSize);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  3. internal/config/errors.go

    		"Invalid value for batch key rotation workers wait",
    		"Please input a non-negative duration",
    		"keyrotation_workers_wait should be > 0ms",
    	)
    	ErrInvalidBatchReplicationWorkersWait = newErrFn(
    		"Invalid value for batch replication workers wait",
    		"Please input a non-negative duration",
    		"replication_workers_wait should be > 0ms",
    	)
    	ErrInvalidBatchExpirationWorkersWait = newErrFn(
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 16:57:01 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/DoubleUtils.java

         * Double.POSITIVE_INFINITY.
         */
        bits |= x.signum() & SIGN_MASK;
        return longBitsToDouble(bits);
      }
    
      /** Returns its argument if it is non-negative, zero if it is negative. */
      static double ensureNonNegative(double value) {
        checkArgument(!isNaN(value));
        return max(value, 0.0);
      }
    
      @VisibleForTesting static final long ONE_BITS = 0x3ff0000000000000L;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    fun String.toLongOrDefault(defaultValue: Long): Long {
      return try {
        toLong()
      } catch (_: NumberFormatException) {
        defaultValue
      }
    }
    
    /**
     * Returns this as a non-negative integer, or 0 if it is negative, or [Int.MAX_VALUE] if it is too
     * large, or [defaultValue] if it cannot be parsed.
     */
    internal fun String?.toNonNegativeInt(defaultValue: Int): Int {
      try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/main/resources/CLMessages.properties

    ECL0010=argument[{0}] is null or empty string.
    ECL0011=argument[{0}] is null or empty array.
    ECL0012=argument[{0}] is null or empty collection.
    ECL0013=argument[{0}] is null or empty map.
    ECL0014=argument[{0}] which is null the index of array is negative integer.
    ECL0015=argument[{0}] which is null the index of array exceed the size of array[{1}].
    ECL0016=key[{0}] is not included in this BeanMap : {1}.
    ECL0017=Exception occurred, because {0}
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:58:02 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        initCollectionWithNullElement();
        try {
          assertSetCount(null, 1);
        } catch (UnsupportedOperationException tolerated) {
        }
      }
    
      // Negative count.
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testSetCount_negative_removeSupported() {
        assertThrows(IllegalArgumentException.class, () -> setCountNoCheckReturnValue(e3(), -1));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/LongMath.java

          default:
            throw new AssertionError();
        }
        return increment ? div + signum : div;
      }
    
      /**
       * Returns {@code x mod m}, a non-negative value less than {@code m}. This differs from {@code x %
       * m}, which might be negative.
       *
       * <p>For example:
       *
       * <pre>{@code
       * mod(7, 4) == 3
       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/MultiReader.java

          advance();
          return read(cbuf, off, len);
        }
        return result;
      }
    
      @Override
      public long skip(long n) throws IOException {
        Preconditions.checkArgument(n >= 0, "n is negative");
        if (n > 0) {
          while (current != null) {
            long result = current.skip(n);
            if (result > 0) {
              return result;
            }
            advance();
          }
        }
        return 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedInts.java

    import java.util.Arrays;
    import java.util.Comparator;
    
    /**
     * Static utility methods pertaining to {@code int} primitives that interpret values as
     * <i>unsigned</i> (that is, any negative value {@code x} is treated as the positive value {@code
     * 2^32 + x}). The methods for which signedness is not an issue are in {@link Ints}, as well as
     * signed versions of methods for which signedness is an issue.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top