Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for max (0.01 sec)

  1. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

          }
          double max = accumulator.max();
          double maxByAddAllStats = accumulatorByAddAllStats.max();
          if (values.hasAnyNaN()) {
            assertWithMessage("max of " + values).that(max).isNaN();
            assertWithMessage("max by addAll(Stats) of " + values).that(maxByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("max of " + values).that(max).isPositiveInfinity();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertThat(min(1, 2)).isEqualTo(1);
        assertThat(min(2, 1)).isEqualTo(1);
        assertThat(max(1, 2)).isEqualTo(2);
        assertThat(max(2, 1)).isEqualTo(2);
      }
    
      public void testMinMaxNatural_equalInstances() {
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(min(a, b)).isSameInstanceAs(a);
        assertThat(max(a, b)).isSameInstanceAs(a);
      }
    
      public void testMinMaxComparator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsTest.java

          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("max of " + values).that(max).isPositiveInfinity();
          } else {
            assertWithMessage("max of " + values).that(max).isEqualTo(MANY_VALUES_MAX);
          }
        }
        assertThat(MANY_VALUES_STATS_SNAPSHOT.max()).isEqualTo(MANY_VALUES_MAX);
        assertThat(INTEGER_MANY_VALUES_STATS_VARARGS.max()).isEqualTo(INTEGER_MANY_VALUES_MAX);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

          }
          double max = accumulator.max();
          double maxByAddAllStats = accumulatorByAddAllStats.max();
          if (values.hasAnyNaN()) {
            assertWithMessage("max of " + values).that(max).isNaN();
            assertWithMessage("max by addAll(Stats) of " + values).that(maxByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("max of " + values).that(max).isPositiveInfinity();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/OrderingTest.java

          assertEquals(min, ordering.min(min, max));
          assertEquals(min, ordering.min(max, min));
    
          assertEquals(max, ordering.max(shuffledList));
          assertEquals(max, ordering.max(shuffledList.iterator()));
          assertEquals(max, ordering.max(first, second, third, rest));
          assertEquals(max, ordering.max(min, max));
          assertEquals(max, ordering.max(max, min));
        }
    
        void testBinarySearch() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/OrderingTest.java

          assertEquals(min, ordering.min(min, max));
          assertEquals(min, ordering.min(max, min));
    
          assertEquals(max, ordering.max(shuffledList));
          assertEquals(max, ordering.max(shuffledList.iterator()));
          assertEquals(max, ordering.max(first, second, third, rest));
          assertEquals(max, ordering.max(min, max));
          assertEquals(max, ordering.max(max, min));
        }
    
        void testBinarySearch() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionTest.java

            assertOrder(X_GT_Y, "1.min", "0.max");
        }
    
        @Test
        void testMaximumSegment() {
            assertOrder(X_GT_Y, "1.max", "1.0-alpha-1");
            assertOrder(X_GT_Y, "1.max", "1.0-SNAPSHOT");
            assertOrder(X_GT_Y, "1.max", "1.0");
            assertOrder(X_GT_Y, "1.max", "1.9999999999");
    
            assertOrder(X_EQ_Y, "1.max", "1.MAX");
    
            assertOrder(X_LT_Y, "1.max", "2.0-alpha-1");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Ints.java

      public static int max(int... array) {
        checkArgument(array.length > 0);
        int max = array[0];
        for (int i = 1; i < array.length; i++) {
          if (array[i] > max) {
            max = array[i];
          }
        }
        return max;
      }
    
      /**
       * Returns the value nearest to {@code value} which is within the closed range {@code [min..max]}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/StatsAccumulator.java

            sumOfSquaresOfDeltas = NaN;
          }
          min = Math.min(min, otherMin);
          max = Math.max(max, otherMax);
        }
      }
    
      /** Returns an immutable snapshot of the current statistics. */
      public Stats snapshot() {
        return new Stats(count, mean, sumOfSquaresOfDeltas, min, max);
      }
    
      /** Returns the number of values. */
      public long count() {
        return count;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top