Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for seizable (0.15 sec)

  1. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <ul>
       *   <li>{@code n - 1}, with approximate probability {@code 1/n}
       *   <li>{@code consistentHash(h, n - 1)}, otherwise (probability {@code 1 - 1/n})
       * </ul>
       *
       * <p>This method is suitable for the common use case of dividing work among buckets that meet the
       * following conditions:
       *
       * <ul>
       *   <li>You want to assign the same fraction of inputs to each bucket.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *         <li>10 levels: average of 184ns per lock()/unlock()
     *         <li>20 levels: average of 393ns per lock()/unlock()
     *       </ul>
     * </ul>
     *
     * <p>As such, the CycleDetectingLockFactory may not be suitable for performance-critical
     * applications which involve tightly-looped or deeply-nested locking algorithms.
     *
     * @author Darick Tong
     * @since 13.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ListsTest.java

          fail("transformed list iterator is addable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
        try {
          iterator.set("1");
          fail("transformed list iterator is settable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
      }
    
      public void testTransformIteratorRandomAccess() {
        List<Integer> fromList = Lists.newArrayList(SOME_LIST);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/Striped64.java

          busyOffset = UNSAFE.objectFieldOffset(sk.getDeclaredField("busy"));
        } catch (Exception e) {
          throw new Error(e);
        }
      }
    
      /**
       * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call
       * to Unsafe.getUnsafe when integrating into a jdk.
       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
    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)
  5. android/guava/src/com/google/common/hash/HashFunction.java

     * including those in many JDK classes.
     *
     * <p>{@code Object.hashCode} implementations tend to be very fast, but have weak collision
     * prevention and <i>no</i> expectation of bit dispersion. This leaves them perfectly suitable for
     * use in hash tables, because extra collisions cause only a slight performance hit, while poor bit
     * dispersion is easily corrected using a secondary hash function (which all reasonable hash table
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Optional.java

     *       approaches to this</a> that should be considered first)
     * </ul>
     *
     * <p>A common alternative to using this class is to find or create a suitable <a
     * href="http://en.wikipedia.org/wiki/Null_Object_pattern">null object</a> for the type in question.
     *
     * <p>This class is not intended as a direct analogue of any existing "option" or "maybe" construct
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSet.java

      // If the set has this many elements, it will "max out" the table size
      private static final int CUTOFF = (int) (MAX_TABLE_SIZE * DESIRED_LOAD_FACTOR);
    
      /**
       * Returns an array size suitable for the backing array of a hash table that uses open addressing
       * with linear probing in its implementation. The returned size is the smallest power of two that
    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)
  8. android/guava/src/com/google/common/cache/Striped64.java

          busyOffset = UNSAFE.objectFieldOffset(sk.getDeclaredField("busy"));
        } catch (Exception e) {
          throw new Error(e);
        }
      }
    
      /**
       * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call
       * to Unsafe.getUnsafe when integrating into a jdk.
       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/Helpers.java

          public @Nullable Object[] toArray() {
            return data.toArray();
          }
        };
      }
    
      /**
       * Returns a "nefarious" map entry with the specified key and value, meaning an entry that is
       * suitable for testing that map entries cannot be modified via a nefarious implementation of
       * equals. This is used for testing unmodifiable collections of map entries; for example, it
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                && theUnsafe.arrayIndexScale(byte[].class) == 1)) {
              throw new Error(); // force fallback to PureJavaComparator
            }
          }
    
          /**
           * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple
           * call to Unsafe.getUnsafe when integrating into a jdk.
           *
           * @return a sun.misc.Unsafe
           */
    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)
Back to top