- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,981 for weigher (0.03 sec)
-
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 51.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/TestingWeighers.java
/** Returns a {@link Weigher} that returns the given {@code constant} for every request. */ static Weigher<Object, Object> constantWeigher(int constant) { return new ConstantWeigher(constant); } /** Returns a {@link Weigher} that uses the integer key as the weight. */ static Weigher<Integer, Object> intKeyWeigher() { return new IntKeyWeigher(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 2K bytes - Viewed (0) -
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)); assertSame(testWeigher, map.weigher); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 110.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
} @GwtIncompatible // weigher public void testWeigher_withoutMaximumWeight() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().weigher(constantWeigher(42)); assertThrows(IllegalStateException.class, () -> builder.build(identityLoader())); } @GwtIncompatible // weigher public void testWeigher_withMaximumSize() { assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
} @GwtIncompatible // weigher public void testWeigher_withoutMaximumWeight() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().weigher(constantWeigher(42)); assertThrows(IllegalStateException.class, () -> builder.build(identityLoader())); } @GwtIncompatible // weigher public void testWeigher_withMaximumSize() { assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java
List<ChannelInfo> list = new ArrayList<>(channels); return list.get(ThreadLocalRandom.current().nextInt(list.size())); } // Weighted random selection int random = ThreadLocalRandom.current().nextInt(totalWeight); int currentWeight = 0; for (ChannelInfo channel : channels) { currentWeight += channel.getScore();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
* array nor its contents can be null, but it is not useful to force the use of {@code * requireNonNull} or the like just to assert that. * * <p>{@code EqualsTester} will always check that every object it is given returns false from * {@code equals(null)}, so it is neither useful nor allowed to include a null value in any * equality group. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/LoadBalancingStrategy.java
* Round-robin selection through available channels */ ROUND_ROBIN, /** * Select the least busy channel based on pending operations */ LEAST_LOADED, /** * Weighted random selection based on channel scores */ WEIGHTED_RANDOM, /** * Affinity-based selection for related operations */ AFFINITY_BASED, /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 1.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/AssertionUtil.java
if (argValue == null) { throw new NullArgumentException(argName); } } /** * Asserts that the argument is neither <code>null</code> nor an empty string. * * @param argName * The name of the argument that must not be {@code null} or an empty string. * @param argValue
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelProblem.java
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.api.services; import org.apache.maven.api.annotations.Nonnull; /** * Describes a problem that was encountered during model building. A problem can either be an exception that was thrown
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Aug 07 14:31:13 UTC 2025 - 2.9K bytes - Viewed (0)