Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 234 for Max (0.12 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/Comparators.java

       * @param b second value to compare.
       * @throws ClassCastException if the parameters are not <i>mutually comparable</i>.
       * @since 30.0
       */
      public static <T extends Comparable<? super T>> T max(T a, T b) {
        return (a.compareTo(b) >= 0) ? a : b;
      }
    
      /**
       * Returns the maximum of the two values, according to the given comparator. If the values compare
       * as equal, the first is returned.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        ms.add("a", Integer.MAX_VALUE);
        ms.add("b", Integer.MAX_VALUE);
        ms.add("c", 3);
    
        assertEquals(Integer.MAX_VALUE, ms.count("a"));
        assertEquals(Integer.MAX_VALUE, ms.count("b"));
        assertEquals(3, ms.count("c"));
    
        assertEquals(Integer.MAX_VALUE, ms.headMultiset("c", CLOSED).size());
        assertEquals(Integer.MAX_VALUE, ms.headMultiset("b", CLOSED).size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      /**
       * Creates a new min-max priority queue with default settings: natural order, no maximum size, no
       * initial contents, and an initial expected size of 11.
       */
      public static <E extends Comparable<E>> MinMaxPriorityQueue<E> create() {
        return new Builder<Comparable<E>>(Ordering.natural()).create();
      }
    
      /**
       * Creates a new min-max priority queue using natural order, no maximum size, and initially
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeMultiset.java

          successor(this, right, succ());
          height = Math.max(2, height);
          distinctElements++;
          totalCount += count;
          return this;
        }
    
        private AvlNode<E> addLeftChild(@ParametricNullness E e, int count) {
          left = new AvlNode<>(e, count);
          successor(pred(), left, this);
          height = Math.max(2, height);
          distinctElements++;
          totalCount += count;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @throws IllegalArgumentException if {@code array} is empty
       */
      public static int max(int... array) {
        checkArgument(array.length > 0);
        int max = flip(array[0]);
        for (int i = 1; i < array.length; i++) {
          int next = flip(array[i]);
          if (next > max) {
            max = next;
          }
        }
        return flip(max);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

            CacheBuilder.newBuilder()
                .maximumSize(MAX_SIZE)
                .removalListener(removalListener)
                .build(loader);
        for (int i = 0; i < 2 * MAX_SIZE; i++) {
          cache.getUnchecked(i);
          assertTrue(cache.size() <= MAX_SIZE);
        }
    
        assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache));
        assertEquals(MAX_SIZE, cache.size());
        CacheTesting.processPendingNotifications(cache);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/QueuesTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Long.MAX_VALUE;
    import static java.lang.Thread.currentThread;
    import static java.util.concurrent.Executors.newCachedThreadPool;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      }
    
      public void testInfinity_Bursty() {
        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, stopwatch);
        limiter.acquire(Integer.MAX_VALUE / 4);
        limiter.acquire(Integer.MAX_VALUE / 2);
        limiter.acquire(Integer.MAX_VALUE);
        assertEvents("R0.00", "R0.00", "R0.00"); // no wait, infinite rate!
    
        limiter.setRate(2.0);
        limiter.acquire();
        limiter.acquire();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheStats.java

        return new CacheStats(
            Math.max(0, saturatedSubtract(hitCount, other.hitCount)),
            Math.max(0, saturatedSubtract(missCount, other.missCount)),
            Math.max(0, saturatedSubtract(loadSuccessCount, other.loadSuccessCount)),
            Math.max(0, saturatedSubtract(loadExceptionCount, other.loadExceptionCount)),
            Math.max(0, saturatedSubtract(totalLoadTime, other.totalLoadTime)),
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
Back to top