Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 559 for max (0.12 sec)

  1. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      @GwtIncompatible
      public void testMax_noArgs() {
        try {
          Ints.max();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testMax() {
        assertThat(Ints.max(LEAST)).isEqualTo(LEAST);
        assertThat(Ints.max(GREATEST)).isEqualTo(GREATEST);
        assertThat(Ints.max((int) 8, (int) 6, (int) 7, (int) 5, (int) 3, (int) 0, (int) 9))
            .isEqualTo((int) 9);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

    internal fun Long.commonClampToInt(): Int {
      return when {
        this > Int.MAX_VALUE -> Int.MAX_VALUE
        else -> toInt()
      }
    }
    
    internal fun CacheControl.Companion.commonForceNetwork() =
      CacheControl.Builder()
        .noCache()
        .build()
    
    internal fun CacheControl.Companion.commonForceCache() =
      CacheControl.Builder()
        .onlyIfCached()
        .maxStale(Int.MAX_VALUE.seconds)
        .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt

        assertThat(parse("permessage-deflate; client_max_window_bits=8")).isEqualTo(
          WebSocketExtensions(perMessageDeflate = true, clientMaxWindowBits = 8),
        )
        assertThat(parse("permessage-deflate; client_max_window_bits=\"8\"")).isEqualTo(
          WebSocketExtensions(perMessageDeflate = true, clientMaxWindowBits = 8),
        )
        assertThat(parse("permessage-deflate; client_max_window_bits=15")).isEqualTo(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/DiscreteDomain.java

            return Long.MAX_VALUE;
          }
          if (end < start && result > 0) { // underflow
            return Long.MIN_VALUE;
          }
          return result;
        }
    
        @Override
        public Long minValue() {
          return Long.MIN_VALUE;
        }
    
        @Override
        public Long maxValue() {
          return Long.MAX_VALUE;
        }
    
        private Object readResolve() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    public class AtomicLongMapTest extends TestCase {
      private static final int ITERATIONS = 100;
      private static final int MAX_ADDEND = 100;
    
      private final Random random = new Random(301);
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
        NullPointerTester tester = new NullPointerTester();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(i)
              .add(Long.MAX_VALUE + i)
              .add(Long.MIN_VALUE + i)
              .add(Integer.MIN_VALUE + i)
              .add(Integer.MAX_VALUE + i)
              .add(floatConversionTest + i)
              .add(doubleConversionTest + i);
          BigInteger bigI = BigInteger.valueOf(i);
          testBigIntegersBuilder
              .add(bigI)
              .add(BigInteger.valueOf(Long.MAX_VALUE).add(bigI))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Floats.java

      public static float max(float... array) {
        checkArgument(array.length > 0);
        float max = array[0];
        for (int i = 1; i < array.length; i++) {
          max = Math.max(max, array[i]);
        }
        return max;
      }
    
      /**
       * Returns the value nearest to {@code value} which is within the closed range {@code [min..max]}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. cmd/server-rlimit.go

    	return currentKernel < kernel.Version(4, 0, 0)
    }
    
    func setMaxResources(ctx *cli.Context) (err error) {
    	// Set the Go runtime max threads threshold to 90% of kernel setting.
    	sysMaxThreads, err := sys.GetMaxThreads()
    	if err == nil {
    		minioMaxThreads := (sysMaxThreads * 90) / 100
    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    public class AtomicLongMapTest extends TestCase {
      private static final int ITERATIONS = 100;
      private static final int MAX_ADDEND = 100;
    
      private final Random random = new Random(301);
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
        NullPointerTester tester = new NullPointerTester();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * @throws IllegalArgumentException if {@code array} is empty
       */
      public static byte max(byte... array) {
        checkArgument(array.length > 0);
        int max = toInt(array[0]);
        for (int i = 1; i < array.length; i++) {
          int next = toInt(array[i]);
          if (next > max) {
            max = next;
          }
        }
        return (byte) max;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
Back to top