Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 94 for choice (0.15 sec)

  1. guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

    @GwtCompatible(emulated = true)
    public class EnumHashBiMapTest extends TestCase {
      private enum Currency {
        DOLLAR,
        FRANC,
        PESO,
        POUND,
        YEN
      }
    
      private enum Country {
        CANADA,
        CHILE,
        JAPAN,
        SWITZERLAND,
        UK
      }
    
      public static final class EnumHashBiMapGenerator implements TestBiMapGenerator<Country, String> {
        @SuppressWarnings("unchecked")
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      // 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.
      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
    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)
  3. android/guava/src/com/google/common/math/BigIntegerMath.java

       * Returns {@code x}, rounded to a {@code double} with the specified rounding mode. If {@code x}
       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_DOWN}, {@code HALF_UP}, and {@code HALF_EVEN},
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/internal/Finalizer.java

        Class<?> finalizableReferenceClass = finalizableReferenceClassReference.get();
        if (finalizableReferenceClass == null) {
          /*
           * FinalizableReference's class loader was reclaimed. While there's a chance that other
           * finalizable references could be enqueued subsequently (at which point the class loader
           * would be resurrected by virtue of us having a strong reference to it), we should pretty
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/EventBus.java

     *
     * <h2>Dead Events</h2>
     *
     * <p>If an event is posted, but no registered subscribers can accept it, it is considered "dead."
     * To give the system a second chance to handle dead events, they are wrapped in an instance of
     * {@link DeadEvent} and reposted.
     *
     * <p>If a subscriber for a supertype of all events (such as Object) is registered, no event will
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

           * run the supermethod as usual.
           *
           * TODO: b/292578973: Use @AndroidIncompatible if we change our system to keep the methods in
           * place but to have the test runner skip them. However, note that if we choose to *both*
           * strip the methods *and* have the test runner not run them (for some unusual cases in which
           * we don't run the stripping test for technical reasons), then we'd be back to the problem
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 20K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

       * without contention. Because assignment of entries to these partitions is not necessarily
       * uniform, the actual concurrency observed may vary. Ideally, you should choose a value to
       * 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

       */
      static void checkNo2BitCharacteristics(HashFunction function) {
        Random rand = new Random(0);
        int keyBits = 32;
    
        // get every one of (keyBits choose 2) deltas:
        for (int i = 0; i < keyBits; i++) {
          for (int j = 0; j < keyBits; j++) {
            if (j <= i) continue;
            int count = 0;
            int maxCount = 20; // the probability of error here is minuscule
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Converter.java

      /**
       * Indicates whether another object is equal to this converter.
       *
       * <p>Most implementations will have no reason to override the behavior of {@link Object#equals}.
       * However, an implementation may also choose to return {@code true} whenever {@code object} is a
       * {@link Converter} that it considers <i>interchangeable</i> with this one. "Interchangeable"
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/collect/CompactHashMap.java

      /**
       * Keeps track of metadata like the number of hash table bits and modifications of this data
       * structure (to make it possible to throw ConcurrentModificationException in the iterator). Note
       * that we choose not to make this volatile, so we do less of a "best effort" to track such
       * errors, for better performance.
       *
       * <p>For a new instance, where the arrays above have not yet been allocated, the value of {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
Back to top