Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 67 for discount (0.04 sec)

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

            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey()));
          }
          assertEquals(WARMUP_SIZE, cache.stats().missCount());
          checkValidState(cache);
        }
      }
    
      public void testPut_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          // don't let the entries get GCed
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetViewTest.java

                        return union(newHashSet(elements[0], elements[1]), newHashSet(elements[2]));
                      }
                    })
                .named("set U disjoint")
                .withFeatures(CollectionSize.SEVERAL, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java

                  ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>>
              parentBuilder) {
        Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
        if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
          return new TestSuite();
        } else {
          return SortedSetTestSuiteBuilder.using(
                  new SetMultimapTestSuiteBuilder.MultimapAsMapGetGenerator<K, V>(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing.features;
    
    import static com.google.common.collect.testing.Helpers.copyToSet;
    import static java.util.Collections.disjoint;
    import static java.util.Collections.unmodifiableList;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.lang.annotation.Annotation;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Settings.kt

      }
    
      /** Returns the value for the setting `id`, or 0 if unset. */
      operator fun get(id: Int): Int = values[id]
    
      /** Returns the number of settings that have values assigned. */
      fun size(): Int = Integer.bitCount(set)
    
      // TODO: honor this setting.
      fun getEnablePush(defaultValue: Boolean): Boolean {
        val bit = 1 shl ENABLE_PUSH
        return if (bit and set != 0) values[ENABLE_PUSH] == 1 else defaultValue
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(0)
        assertThat(get(server.url("/")).body.string()).isEqualTo("B")
        assertThat(get(server.url("/")).body.string()).isEqualTo("C")
        assertThat(cache.requestCount()).isEqualTo(3)
        assertThat(cache.networkCount()).isEqualTo(3)
        assertThat(cache.hitCount()).isEqualTo(0)
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java

                  ?, ? extends OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>>
              parentBuilder) {
        Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures());
        if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) {
          return new TestSuite();
        } else {
          return SetTestSuiteBuilder.using(
                  new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            "containsAll(partialOverlap) should return false",
            collection.containsAll(MinimalCollection.of(e0(), e3())));
      }
    
      public void testContainsAll_disjoint() {
        assertFalse(
            "containsAll(disjoint) should return false",
            collection.containsAll(MinimalCollection.of(e3())));
      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullNotAllowed() {
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            "containsAll(partialOverlap) should return false",
            collection.containsAll(MinimalCollection.of(e0(), e3())));
      }
    
      public void testContainsAll_disjoint() {
        assertFalse(
            "containsAll(disjoint) should return false",
            collection.containsAll(MinimalCollection.of(e3())));
      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullNotAllowed() {
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.FeatureUtil.addImpliedFeatures;
    import static java.util.Arrays.asList;
    import static java.util.Collections.disjoint;
    import static java.util.Collections.unmodifiableSet;
    import static java.util.logging.Level.FINER;
    
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top