Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 505 for codes (0.13 sec)

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

      }
    
      /**
       * Assigns to {@code hashCode} a "bucket" in the range {@code [0, buckets)}, in a uniform manner
       * that minimizes the need for remapping as {@code buckets} grows. That is, {@code
       * consistentHash(h, n)} equals:
       *
       * <ul>
       *   <li>{@code n - 1}, with approximate probability {@code 1/n}
       *   <li>{@code consistentHash(h, n - 1)}, otherwise (probability {@code 1 - 1/n})
       * </ul>
       *
    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. guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Colliders;
    import java.util.List;
    
    /**
     * A generator using sample elements whose hash codes all collide badly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> {
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/Striped64.java

       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
      static final Random rng = new Random();
    
    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)
  4. guava/src/com/google/common/cache/Striped64.java

       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
      static final Random rng = new Random();
    
    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. guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <h4>Example usage</h4>
     *
     * <pre>{@code
     * class Foo {
     *   private static final ImmutableSet<String> RESERVED_CODES =
     *       ImmutableSet.of("AZ", "CQ", "ZX");
     *
     *   private final ImmutableSet<String> codes;
     *
     *   public Foo(Iterable<String> codes) {
     *     this.codes = ImmutableSet.copyOf(codes);
     *     checkArgument(Collections.disjoint(this.codes, RESERVED_CODES));
     *   }
     * }
     * }</pre>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <h4>Example usage</h4>
     *
     * <pre>{@code
     * class Foo {
     *   private static final ImmutableSet<String> RESERVED_CODES =
     *       ImmutableSet.of("AZ", "CQ", "ZX");
     *
     *   private final ImmutableSet<String> codes;
     *
     *   public Foo(Iterable<String> codes) {
     *     this.codes = ImmutableSet.copyOf(codes);
     *     checkArgument(Collections.disjoint(this.codes, RESERVED_CODES));
     *   }
     * }
     * }</pre>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hasher.java

      @Override
      Hasher putLong(long l);
    
      /** Equivalent to {@code putInt(Float.floatToRawIntBits(f))}. */
      @CanIgnoreReturnValue
      @Override
      Hasher putFloat(float f);
    
      /** Equivalent to {@code putLong(Double.doubleToRawLongBits(d))}. */
      @CanIgnoreReturnValue
      @Override
      Hasher putDouble(double d);
    
      /** Equivalent to {@code putByte(b ? (byte) 1 : (byte) 0)}. */
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Colliders;
    import java.util.List;
    
    /**
     * A generator using sample elements whose hash codes all collide badly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> {
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Striped64.java

       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
      static final Random rng = new Random();
    
    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/base/Objects.java

       *
       * <ul>
       *   <li>{@code true} if {@code a} and {@code b} are both null.
       *   <li>{@code true} if {@code a} and {@code b} are both non-null and they are equal according to
       *       {@link Object#equals(Object)}.
       *   <li>{@code false} in all other situations.
       * </ul>
       *
       * <p>This assumes that any non-null objects passed to this function conform to the {@code
       * equals()} contract.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
Back to top