Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for minValue (0.08 sec)

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

                ContiguousSet.closedOpen(1, 1),
                ContiguousSet.closedOpen(Integer.MIN_VALUE, Integer.MIN_VALUE),
                ImmutableSortedSet.of(),
                ImmutableSet.of())
            .testEquals();
        // not testing hashCode for these because it takes forever to compute
        assertEquals(
            ContiguousSet.closed(Integer.MIN_VALUE, Integer.MAX_VALUE),
            ContiguousSet.create(Range.<Integer>all(), integers()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Cut.java

          return domain.minValue();
        }
    
        @Override
        Comparable<?> greatestValueBelow(DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError();
        }
    
        @Override
        Cut<Comparable<?>> canonical(DiscreteDomain<Comparable<?>> domain) {
          try {
            return Cut.<Comparable<?>>belowValue(domain.minValue());
          } catch (NoSuchElementException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Cut.java

          return domain.minValue();
        }
    
        @Override
        Comparable<?> greatestValueBelow(DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError();
        }
    
        @Override
        Cut<Comparable<?>> canonical(DiscreteDomain<Comparable<?>> domain) {
          try {
            return Cut.<Comparable<?>>belowValue(domain.minValue());
          } catch (NoSuchElementException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

                ContiguousSet.closedOpen(1, 1),
                ContiguousSet.closedOpen(Integer.MIN_VALUE, Integer.MIN_VALUE),
                ImmutableSortedSet.of(),
                ImmutableSet.of())
            .testEquals();
        // not testing hashCode for these because it takes forever to compute
        assertEquals(
            ContiguousSet.closed(Integer.MIN_VALUE, Integer.MAX_VALUE),
            ContiguousSet.create(Range.<Integer>all(), integers()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          replica.put(newValue, new AtomicInteger(1));
        }
      }
    
      private static void removeMinFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int minValue) {
        Integer replicatedMinValue = replica.firstKey();
        assertEquals(replicatedMinValue, (Integer) minValue);
        removeFromReplica(replica, replicatedMinValue);
      }
    
      private static void removeMaxFromReplica(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          replica.put(newValue, new AtomicInteger(1));
        }
      }
    
      private static void removeMinFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int minValue) {
        Integer replicatedMinValue = replica.firstKey();
        assertEquals(replicatedMinValue, (Integer) minValue);
        removeFromReplica(replica, replicatedMinValue);
      }
    
      private static void removeMaxFromReplica(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      }
    
      public void testCheckPositive_minInt() {
        assertThrows(
            IllegalArgumentException.class,
            () -> MathPreconditions.checkPositive("int", Integer.MIN_VALUE));
      }
    
      public void testCheckPositive_positiveInt() {
        MathPreconditions.checkPositive("int", 1);
      }
    
      public void testCheckPositive_negativeInt() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/SignedBytes.java

       *     {@link Byte#MAX_VALUE} if it is too large, or {@link Byte#MIN_VALUE} if it is too small
       */
      public static byte saturatedCast(long value) {
        if (value > Byte.MAX_VALUE) {
          return Byte.MAX_VALUE;
        }
        if (value < Byte.MIN_VALUE) {
          return Byte.MIN_VALUE;
        }
        return (byte) value;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        long doubleConversionTest = 0xfffffffffffff402L;
    
        for (long i = -3; i <= 3; i++) {
          testLongsBuilder
              .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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertEquals(
            Range.closedOpen(Integer.MIN_VALUE, 0),
            Range.closedOpen(Integer.MIN_VALUE, 0).canonical(integers()));
    
        assertEquals(Range.closedOpen(Integer.MIN_VALUE, 0), Range.lessThan(0).canonical(integers()));
        assertEquals(Range.closedOpen(Integer.MIN_VALUE, 1), Range.atMost(0).canonical(integers()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top