Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for 5min (0.2 sec)

  1. guava-tests/test/com/google/common/collect/OrderingTest.java

          assertEquals(min, ordering.min(first, second, third, rest));
          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));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

          assertEquals(min, ordering.min(first, second, third, rest));
          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));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        assertThrows(IllegalArgumentException.class, () -> UnsignedBytes.min());
      }
    
      public void testMin() {
        assertThat(UnsignedBytes.min(LEAST)).isEqualTo(LEAST);
        assertThat(UnsignedBytes.min(GREATEST)).isEqualTo(GREATEST);
        assertThat(UnsignedBytes.min((byte) 0, (byte) -128, (byte) -1, (byte) 127, (byte) 1))
            .isEqualTo((byte) 0);
        assertThat(UnsignedBytes.min((byte) -1, (byte) 127, (byte) 1, (byte) -128, (byte) 0))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Floats.java

       * @throws IllegalArgumentException if {@code min > max}
       * @since 21.0
       */
      public static float constrainToRange(float value, float min, float max) {
        // avoid auto-boxing by not using Preconditions.checkArgument(); see Guava issue 3984
        // Reject NaN by testing for the good case (min <= max) instead of the bad (min > max).
        if (min <= max) {
          return Math.min(Math.max(value, 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)
  5. 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)
  6. guava-tests/test/com/google/common/math/MathTesting.java

        // Add small multiples of MIN_VALUE and MIN_NORMAL
        for (int scale = 1; scale <= 4; scale++) {
          for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
            fractionalBuilder.add(d * scale).add(-d * scale);
          }
        }
        for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) {
          for (int direction : new int[] {1, -1}) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * @throws IllegalArgumentException if {@code array} is empty
       */
      public static byte min(byte... array) {
        checkArgument(array.length > 0);
        int min = toInt(array[0]);
        for (int i = 1; i < array.length; i++) {
          int next = toInt(array[i]);
          if (next < min) {
            min = next;
          }
        }
        return (byte) min;
      }
    
      /**
    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)
  8. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        int vacated = heap.fillHoleAt(index);
        // Try to see if toTrickle can be bubbled up min levels.
        int bubbledTo = heap.bubbleUpAlternatingLevels(vacated, toTrickle);
        if (bubbledTo == vacated) {
          // Could not bubble toTrickle up min levels, try moving
          // it from min level to max level (or max to min level) and bubble up
          // there.
          return heap.tryCrossOverAndBubbleUp(index, vacated, toTrickle);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @throws IllegalArgumentException if {@code array} is empty
       */
      public static int min(int... array) {
        checkArgument(array.length > 0);
        int min = flip(array[0]);
        for (int i = 1; i < array.length; i++) {
          int next = flip(array[i]);
          if (next < min) {
            min = next;
          }
        }
        return flip(min);
      }
    
      /**
    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)
  10. android/guava/src/com/google/common/math/IntMath.java

          // equivalent to Math.min(delta, 0)
    
          a = delta - minDeltaOrZero - minDeltaOrZero; // sets a to Math.abs(a - b)
          // a is now nonnegative and even
    
          b += minDeltaOrZero; // sets b to min(old a, b)
          a >>= Integer.numberOfTrailingZeros(a); // divide out all 2s, since 2 doesn't divide b
        }
        return a << min(aTwos, bTwos);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top