Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 46 for Chow (0.12 sec)

  1. guava/src/com/google/common/collect/EnumHashBiMap.java

        super(new EnumMap<K, V>(keyType), new HashMap<V, K>());
        // TODO: cpovirk - Pre-size the HashMap based on the number of enum values?
        this.keyTypeOrObjectUnderJ2cl = keyType;
      }
    
      // Overriding these 3 methods to show that values may be null (but not keys)
    
      @Override
      K checkKey(K key) {
        return checkNotNull(key);
      }
    
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: The length of the byte array to hash.
     *   <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.).
     *   <li>hashMethod: how to hash the data (using the Hashing API or the MessageDigest API).
     * </ul>
     *
     * @author Kurt Alfred Kluever
     */
    public class MessageDigestAlgorithmBenchmark {
      @Param({"10", "1000", "100000", "1000000"})
      int size;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ReverseOrdering.java

      }
    
      @Override
      public int compare(@ParametricNullness T a, @ParametricNullness T b) {
        return forwardOrder.compare(b, a);
      }
    
      @SuppressWarnings("unchecked") // how to explain?
      @Override
      public <S extends T> Ordering<S> reverse() {
        return (Ordering<S>) forwardOrder;
      }
    
      // Override the min/max methods to "hoist" delegation outside loops
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            everywhere. If you can give enough detail such that any of us can imagine coming across
            a similar need in our own work, that's extremely helpful in studying how broadly useful the
            feature will be.
    
      - type: textarea
        attributes:
          label: Concrete Use Cases
          description: Please provide use cases that actually came up in the real world.
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /** Returns the sample elements that this generate populates its container with. */
      SampleElements<E> samples();
    
      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

      /** Returns the sample elements that this generate populates its container with. */
      SampleElements<E> samples();
    
      /**
       * Creates a new container containing the given elements. TODO: would be nice to figure out how to
       * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an
       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java

    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /** A benchmark that times how long it takes to add a given number of */
    @VmOptions({"-Xms8g", "-Xmx8g"})
    public class SingleThreadAbstractFutureBenchmark {
      @Param Impl impl;
    
      private final Exception exception = new Exception();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 16 17:22:27 GMT 2019
    - 3.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

     *
     * @author Kurt Alfred Kluever
     */
    public class MessageDigestHashFunctionTest extends TestCase {
      private static final ImmutableSet<String> INPUTS = ImmutableSet.of("", "Z", "foobar");
    
      // From "How Provider Implementations Are Requested and Supplied" from
      // http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html
      //  - Some providers may choose to also include alias names.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class IteratorTester<E extends @Nullable Object>
        extends AbstractIteratorTester<E, Iterator<E>> {
      /**
       * Creates an IteratorTester.
       *
       * @param steps how many operations to test for each tested pair of iterators
       * @param features the features supported by the iterator
       */
      protected IteratorTester(
          int steps,
          Iterable<? extends IteratorFeature> features,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/SmallCharMatcher.java

      private boolean checkFilter(int c) {
        return 1 == (1 & (filter >> c));
      }
    
      // This is all essentially copied from ImmutableSet, but we have to duplicate because
      // of dependencies.
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.5;
    
      /**
       * Returns an array size suitable for the backing array of a hash table that uses open addressing
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
Back to top