Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 237 for weight (0.21 sec)

  1. guava/src/com/google/common/cache/Weigher.java

    /**
     * Calculates the weights of cache entries.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtCompatible
    @FunctionalInterface
    @ElementTypesAreNonnullByDefault
    public interface Weigher<K, V> {
    
      /**
       * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
       * relative to each other.
       *
       * @return the weight of the entry; must be non-negative
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/Weigher.java

    /**
     * Calculates the weights of cache entries.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface Weigher<K, V> {
    
      /**
       * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
       * relative to each other.
       *
       * @return the weight of the entry; must be non-negative
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  3. 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;
    CSS
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Tue Feb 08 07:57:03 GMT 2022
    - 1.1K bytes
    - Viewed (4)
  4. istioctl/pkg/writer/envoy/configdump/testdata/endpoint/configdump.json

                                                }
                                            },
                                            "load_balancing_weight": 1
                                        }
                                    ],
                                    "load_balancing_weight": 3
                                }
                            ],
                            "policy": {
    Json
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Tue Jul 12 02:25:59 GMT 2022
    - 66K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/TestingWeighers.java

        @Override
        public int weigh(Object key, Object value) {
          return constant;
        }
      }
    
      static final class IntKeyWeigher implements Weigher<Integer, Object> {
        @Override
        public int weigh(Integer key, Object value) {
          return key;
        }
      }
    
      static final class IntValueWeigher implements Weigher<Object, Integer> {
        @Override
        public int weigh(Object key, Integer value) {
          return value;
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
  6. android/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);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

        checkArgument(maximumSize >= 0, "maximum size must not be negative");
        this.maximumSize = maximumSize;
        return this;
      }
    
      /**
       * Specifies the maximum weight of entries the cache may contain. Weight is determined using the
       * {@link Weigher} specified with {@link #weigher}, and use of this method requires a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/TestingWeighers.java

        @Override
        public int weigh(Object key, Object value) {
          return constant;
        }
      }
    
      static final class IntKeyWeigher implements Weigher<Integer, Object> {
        @Override
        public int weigh(Integer key, Object value) {
          return key;
        }
      }
    
      static final class IntValueWeigher implements Weigher<Object, Integer> {
        @Override
        public int weigh(Object key, Integer value) {
          return value;
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K 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%
    Go
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  10. android/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);
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top