Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 125 for large (0.19 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedLongs.java

          if (digit == -1) {
            throw new NumberFormatException(string);
          }
          if (pos > maxSafePos && ParseOverflowDetection.overflowInParse(value, digit, radix)) {
            throw new NumberFormatException("Too large for unsigned long: " + string);
          }
          value = (value * radix) + digit;
        }
    
        return value;
      }
    
      /**
       * Returns the unsigned {@code long} value represented by the given string.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertEquals(1, map.segments[1].table.length());
        assertEquals(1, map.segments[2].table.length());
        assertEquals(1, map.segments[3].table.length());
      }
    
      public void testInitialCapacity_large() {
        CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE);
        // that the builder didn't blow up is enough;
        // don't actually create this monster!
      }
    
      public void testConcurrencyLevel_zero() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/IntMath.java

       * method is overflow resilient.
       *
       * @since 14.0
       */
      public static int mean(int x, int y) {
        // Efficient method for computing the arithmetic mean.
        // The alternative (x + y) / 2 fails for large values.
        // The alternative (x + y) >>> 1 fails for negative values.
        return (x & y) + ((x ^ y) >> 1);
      }
    
      /**
       * Returns {@code true} if {@code n} is a <a
    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)
  4. android/guava/src/com/google/common/collect/ContiguousSet.java

     * particular example can be written as just:
     *
     * <pre>{@code
     * ContiguousSet.closed(5, 42)
     * }</pre>
     *
     * <p><b>Warning:</b> Be extremely careful what you do with conceptually large instances (such as
     * {@code ContiguousSet.create(Range.greaterThan(0), DiscreteDomain.integers()}). Certain operations
     * on such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/SignedBytes.java

       *
       * @param value any {@code long} value
       * @return the same value cast to {@code byte} if it is in the range of the {@code byte} type,
       *     {@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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 7.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

             * than a handful of exceptions. But it seems prudent to set a cap on how many we'll cache.
             * This avoids out-of-control memory consumption, and it keeps the cache from growing so
             * large that doing the lookup is noticeably slower than redoing the work would be.
             *
             * Ideally we'd have a real eviction policy, but until we see a problem in practice, I hope
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Striped64.java

       * placed adjacent to each other, and so will most often share
       * cache lines (with a huge negative performance impact) without
       * this precaution.
       *
       * In part because Cells are relatively large, we avoid creating
       * them until they are needed.  When there is no contention, all
       * updates are made to the base field.  Upon first contention (a
       * failed CAS on base update), the table is initialized to size 2.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Strings.java

        final int len = string.length();
        final long longSize = (long) len * (long) count;
        final int size = (int) longSize;
        if (size != longSize) {
          throw new ArrayIndexOutOfBoundsException("Required array size too large: " + longSize);
        }
    
        final char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
          System.arraycopy(array, 0, array, n, n);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Striped64.java

       * placed adjacent to each other, and so will most often share
       * cache lines (with a huge negative performance impact) without
       * this precaution.
       *
       * In part because Cells are relatively large, we avoid creating
       * them until they are needed.  When there is no contention, all
       * updates are made to the base field.  Upon first contention (a
       * failed CAS on base update), the table is initialized to size 2.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSet.java

         */
        abstract SetBuilderImpl<E> copy();
    
        /**
         * Call this before build(). Does a final check on the internal data structures, e.g. shrinking
         * unnecessarily large structures or detecting previously unnoticed hash flooding.
         */
        SetBuilderImpl<E> review() {
          return this;
        }
    
        abstract ImmutableSet<E> build();
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
Back to top