Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for weigh (0.03 sec)

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

        assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    
        // add an at-the-maximum-weight entry
        getAll(cache, asList(45));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(0, 45);
    
        // add an over-the-maximum-weight entry
        getAll(cache, asList(46));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).contains(0);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/CacheBuilder.java

        checkArgument(maximumWeight >= 0, "maximum weight must not be negative");
        this.maximumWeight = maximumWeight;
        return this;
      }
    
      /**
       * Specifies the weigher to use in determining the weight of entries. Entry weight is taken into
       * consideration by {@link #maximumWeight(long)} when determining which entries to evict, and use
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      public void testSetWeigher() {
        Weigher<Object, Object> testWeigher =
            new Weigher<Object, Object>() {
              @Override
              public int weigh(Object key, Object value) {
                return 42;
              }
            };
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().maximumWeight(1).weigher(testWeigher));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      public void testSetWeigher() {
        Weigher<Object, Object> testWeigher =
            new Weigher<Object, Object>() {
              @Override
              public int weigh(Object key, Object value) {
                return 42;
              }
            };
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().maximumWeight(1).weigher(testWeigher));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

        checkArgument(maximumWeight >= 0, "maximum weight must not be negative");
        this.maximumWeight = maximumWeight;
        return this;
      }
    
      /**
       * Specifies the weigher to use in determining the weight of entries. Entry weight is taken into
       * consideration by {@link #maximumWeight(long)} when determining which entries to evict, and use
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

          ValueReference<K, V> previous = entry.getValueReference();
          int weight = map.weigher.weigh(key, value);
          checkState(weight >= 0, "Weights must be non-negative");
    
          ValueReference<K, V> valueReference =
              map.valueStrength.referenceValue(this, entry, value, weight);
          entry.setValueReference(valueReference);
          recordWrite(entry, weight, now);
          previous.notifyNewValue(value);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. docs/assets/css/app.css

        font-weight: 700;
        font-style: normal
    }
    
    body, input {
        font-family: cash-market,"Helvetica Neue",helvetica,sans-serif;
    }
    
    .md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 {
        font-family: cash-market,"Helvetica Neue",helvetica,sans-serif;
        line-height: normal;
        font-weight: bold;
    }
    
    button.dl {
      font-weight: 300;
      font-size: 25px;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Feb 08 07:57:03 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchUrlQueue.java

        public static final String DEPTH = "depth";
    
        public static final String LAST_MODIFIED = "lastModified";
    
        public static final String CREATE_TIME = "createTime";
    
        public static final String WEIGHT = "weight";
    
        @Override
        public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException {
            builder.startObject();
            if (sessionId != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe_test.go

    VirtualService: bookinfo
       Route to host "productpage" with weight 30%
       Route to host "productpage2" with weight 20%
       Route to host "productpage3" with weight 50%
       Match: /prefix*
    --------------------
    Exposed on Ingress Gateway http://1.1.1.1
    Exposed on Ingress Gateway http://2.2.2.2
    VirtualService: bookinfo
       Route to host "productpage" with weight 30%
       Route to host "productpage2" with weight 20%
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/UrlQueueImpl.java

            this.lastModified = lastModified;
        }
    
        @Override
        public float getWeight() {
            return weight;
        }
    
        @Override
        public void setWeight(float weight) {
            this.weight = weight;
        }
    
        @Override
        public String toString() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Mon Nov 04 07:44:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top