Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 447 for a_value (0.05 sec)

  1. android/guava/src/com/google/common/cache/CacheBuilder.java

       * accommodate as many threads as will ever concurrently modify the table. Using a significantly
       * higher value than you need can waste space and time, and a significantly lower value can lead
       * to thread contention. But overestimates and underestimates within an order of magnitude do not
       * usually have much noticeable impact. A value of one permits only one thread to modify the cache
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/MoreObjects.java

          if (value instanceof CharSequence) {
            return ((CharSequence) value).length() == 0;
          } else if (value instanceof Collection) {
            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
          } else if (value instanceof Optional) {
            return !((Optional) value).isPresent();
          } else if (value.getClass().isArray()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        BigDecimal maxDoubleAsBigDecimal = new BigDecimal(Double.MAX_VALUE);
        new RoundToDoubleTester(maxDoubleAsBigDecimal)
            .setExpectation(Double.MAX_VALUE, values())
            .test();
      }
    
      public void testRoundToDouble_maxDoublePlusOne() {
        BigDecimal maxDoubleAsBigDecimal = new BigDecimal(Double.MAX_VALUE).add(BigDecimal.ONE);
        new RoundToDoubleTester(maxDoubleAsBigDecimal)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

          }
        }
      }
    
      public void testSaturatedAbs() {
        assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(Long.MIN_VALUE));
        assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(Long.MAX_VALUE));
        assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(-Long.MAX_VALUE));
        assertEquals(0, LongMath.saturatedAbs(0));
        assertEquals(1, LongMath.saturatedAbs(1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  5. 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());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/IntMathTest.java

          int n = rand.nextInt(Integer.MAX_VALUE);
          assertEquals(LongMath.isPrime(n), IntMath.isPrime(n));
        }
      }
    
      public void testSaturatedAbs() {
        assertEquals(Integer.MAX_VALUE, IntMath.saturatedAbs(Integer.MIN_VALUE));
        assertEquals(Integer.MAX_VALUE, IntMath.saturatedAbs(Integer.MAX_VALUE));
        assertEquals(Integer.MAX_VALUE, IntMath.saturatedAbs(-Integer.MAX_VALUE));
        assertEquals(0, IntMath.saturatedAbs(0));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            ImmutableList.of(
                Striped.lazyWeakLock(Integer.MAX_VALUE),
                Striped.lazyWeakSemaphore(Integer.MAX_VALUE, Integer.MAX_VALUE),
                Striped.lazyWeakReadWriteLock(Integer.MAX_VALUE))) {
          for (int i = 0; i < 3; i++) {
            // doesn't throw exception
            Object unused = striped.getAt(Integer.MAX_VALUE - i);
          }
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            ImmutableList.of(
                Striped.lazyWeakLock(Integer.MAX_VALUE),
                Striped.lazyWeakSemaphore(Integer.MAX_VALUE, Integer.MAX_VALUE),
                Striped.lazyWeakReadWriteLock(Integer.MAX_VALUE))) {
          for (int i = 0; i < 3; i++) {
            // doesn't throw exception
            Object unused = striped.getAt(Integer.MAX_VALUE - i);
          }
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

                new long[] {MIN_VALUE, 1L},
                new long[] {1L},
                new long[] {1L, MIN_VALUE},
                new long[] {MAX_VALUE, MAX_VALUE - 1L},
                new long[] {MAX_VALUE, MAX_VALUE},
                new long[] {MAX_VALUE, MAX_VALUE, MAX_VALUE});
    
        Comparator<long[]> comparator = Longs.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        new RoundToDoubleTester(maxDoubleAsBigInteger)
            .setExpectation(Double.MAX_VALUE, values())
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxDoublePlusOne() {
        BigInteger maxDoubleAsBigInteger =
            DoubleMath.roundToBigInteger(Double.MAX_VALUE, UNNECESSARY).add(BigInteger.ONE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
Back to top