Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for weight (0.16 sec)

  1. 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)
  2. 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 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  3. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  4. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  5. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            a full-time Guava team member. [Feedback](https://stackoverflow.com/a/4543114) from our
            users indicates that they really appreciate Guava's high power-to-weight ratio. It's
            important to us to keep Guava as easy to use and understand as we can. That means boiling
            features down to compact but powerful abstractions, and controlling feature bloat carefully.
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  6. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            a full-time Guava team member. [Feedback](https://stackoverflow.com/a/4543114) from our
            users indicates that they really appreciate Guava's high power-to-weight ratio. It's
            important to us to keep Guava as easy to use and understand as we can. That means boiling
            features down to compact but powerful abstractions, and controlling feature bloat carefully.
    
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeMultiset.java

          this.height = 1 + Math.max(height(left), height(right));
        }
    
        private void recompute() {
          recomputeMultiset();
          recomputeHeight();
        }
    
        private AvlNode<E> rebalance() {
          switch (balanceFactor()) {
            case -2:
              // requireNonNull is safe because right must exist in order to get a negative factor.
              requireNonNull(right);
              if (right.balanceFactor() > 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

                "one", 1,
                "two", 2,
                "three", 3,
                "four", 4,
                "five", 5,
                "six", 6,
                "seven", 7,
                "eight", 8),
            "eight",
            8,
            "five",
            5,
            "four",
            4,
            "one",
            1,
            "seven",
            7,
            "six",
            6,
            "three",
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

    /*
     * Written by Doug Lea with assistance from members of JCP JSR-166
     * Expert Group and released to the public domain, as explained at
     * http://creativecommons.org/publicdomain/zero/1.0/
     * Other contributors include Andrew Wright, Jeffrey Hayes,
     * Pat Fisher, Mike Judd.
     */
    
    /*
     * Source:
     * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck/JSR166TestCase.java?revision=1.90
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/LongMath.java

     * named analogously to their {@code BigInteger} counterparts.
     *
     * <p>The implementations of many methods in this class are based on material from Henry S. Warren,
     * Jr.'s <i>Hacker's Delight</i>, (Addison Wesley, 2002).
     *
     * <p>Similar functionality for {@code int} and for {@link BigInteger} can be found in {@link
     * IntMath} and {@link BigIntegerMath} respectively. For other common operations on {@code long}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
Back to top