Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 172 for constraint (0.15 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(2, 20);
        cache.put(3, 30);
        cache.put(4, 40);
        cache.put(5, 50);
    
        assertEquals(null, cache.getIfPresent(10));
        // Order required to remove dependence on access order / write order constraint.
        assertEquals(Integer.valueOf(20), cache.getIfPresent(2));
        assertEquals(Integer.valueOf(30), cache.getIfPresent(3));
        assertEquals(Integer.valueOf(40), cache.getIfPresent(4));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java

    import com.google.common.collect.testing.Helpers;
    import java.util.Collections;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Encapsulates the constraints that a class under test must satisfy in order for a tester method to
     * be run against that class.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    public final class TesterRequirements {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 20 11:19:03 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/PairedStatsTest.java

    import static com.google.common.math.StatsTesting.ALL_MANY_VALUES;
    import static com.google.common.math.StatsTesting.ALL_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.CONSTANT_VALUES_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.DUPLICATE_MANY_VALUES_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.EMPTY_PAIRED_STATS;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

    import static com.google.common.math.StatsTesting.ALL_MANY_VALUES;
    import static com.google.common.math.StatsTesting.ALL_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.CONSTANT_VALUES_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.DUPLICATE_MANY_VALUES_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.EMPTY_PAIRED_STATS;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/RemovalCause.java

       */
      EXPIRED {
        @Override
        boolean wasEvicted() {
          return true;
        }
      },
    
      /**
       * The entry was evicted due to size constraints. This can occur when using {@link
       * CacheBuilder#maximumSize} or {@link CacheBuilder#maximumWeight}.
       */
      SIZE {
        @Override
        boolean wasEvicted() {
          return true;
        }
      };
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * load on the garbage collector by only using a constant number of internal objects.
     *
     * <p>This class should not be assumed to be universally superior to {@code
     * java.util.LinkedHashMap}. Generally speaking, this class reduces object allocation and memory
     * consumption at the price of moderately increased constant factors of CPU. Only use this class
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/NetworkBuilder.java

     *     unless it is constrained by using a method like {@link #nodeOrder}, or the builder is
     *     constructed based on an existing {@code Network} using {@link #from(Network)}.
     * @param <E> The most general edge type this builder will support. This is normally {@code Object}
     *     unless it is constrained by using a method like {@link #edgeOrder}, or the builder is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/EnumsTest.java

        // ClassLoader.
        Set<Object> shadowConstants = new HashSet<>();
        for (TestEnum constant : TestEnum.values()) {
          Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, constant.name());
          assertThat(result).isPresent();
          shadowConstants.add(result.get());
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

            actualCrcHasher);
      }
    
      // From RFC 3720, Section 12.1, the polynomial generator is 0x11EDC6F41.
      // We calculate the constant below by:
      //   1. Omitting the most significant bit (because it's always 1). => 0x1EDC6F41
      //   2. Flipping the bits of the constant so we can process a byte at a time. => 0x82F63B78
      private static final int CRC32C_GENERATOR = 0x1EDC6F41; // 0x11EDC6F41
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    /**
     * A ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.
     *
     * <p>See {@link TestingExecutors#sameThreadScheduledExecutor()} for a full list of constraints.
     *
     * @author John Sirois
     * @author Zach van Schouwen
     */
    @GwtIncompatible
    class SameThreadScheduledExecutorService extends AbstractExecutorService
        implements ListeningScheduledExecutorService {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
Back to top