- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 94 for Compute (0.2 sec)
-
guava-tests/test/com/google/common/collect/MapsTest.java
} try { unmod.computeIfPresent(4, (k, v) -> v); fail("UnsupportedOperationException expected"); } catch (UnsupportedOperationException expected) { } try { unmod.compute(4, (k, v) -> v); fail("UnsupportedOperationException expected"); } catch (UnsupportedOperationException expected) { } try { unmod.merge(4, "four", (k, v) -> v);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 16:06:01 GMT 2024 - 67.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Preconditions.java
* } * }</pre> * * <p>would be flagged as having called {@code sqrt()} with an illegal argument. * * <h3>Performance</h3> * * <p>Avoid passing message arguments that are expensive to compute; your code will always compute * them, even though they usually won't be needed. If you have such arguments, use the conventional * if/throw idiom instead. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Feb 14 15:46:55 GMT 2024 - 52.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/BigIntegerMath.java
* if {@code n == 0}. * * <p><b>Warning:</b> the result takes <i>O(n log n)</i> space, so use cautiously. * * <p>This uses an efficient binary recursive algorithm to compute the factorial with balanced * multiplies. It also removes all the 2s from the intermediate products (shifting them back in at * the end). * * @throws IllegalArgumentException if {@code n < 0} */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 18.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/BaseEncoding.java
this.bitsPerChar = log2(chars.length, UNNECESSARY); } catch (ArithmeticException e) { throw new IllegalArgumentException("Illegal alphabet length " + chars.length, e); } // Compute how input bytes are chunked. For example, with base64 we chunk every 3 bytes into // 4 characters. We have bitsPerChar == 6, charsPerChunk == 4, and bytesPerChunk == 3.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Mar 15 16:33:32 GMT 2024 - 41.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/NullCacheTest.java
listener = queuingRemovalListener(); } public void testGet() { Object computed = new Object(); LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() .maximumSize(0) .removalListener(listener) .build(constantLoader(computed)); Object key = new Object(); assertSame(computed, cache.getUnchecked(key));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
* @deprecated Unsupported operation. */ @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") @CheckForNull public final V compute( K key, BiFunction<? super K, ? super @Nullable V, ? extends @Nullable V> remappingFunction) { throw new UnsupportedOperationException(); } /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 44.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AsyncCallable.java
*/ package com.google.common.util.concurrent; import com.google.common.annotations.GwtCompatible; import java.util.concurrent.Future; import org.checkerframework.checker.nullness.qual.Nullable; /** * Computes a value, possibly asynchronously. For an example usage and more information, see {@link * Futures.FutureCombiner#callAsync(AsyncCallable, java.util.concurrent.Executor)}. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Dec 14 15:53:12 GMT 2021 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
int[] same = new int[hashBits]; int[] diff = new int[hashBits]; // go through trials to compute probability for (int j = 0; j < trials; j++) { int key1 = rand.nextInt(); // flip input bit for key2 int key2 = key1 ^ (1 << i); // compute hash values int hash1 = function.hashInt(key1).asInt(); int hash2 = function.hashInt(key2).asInt();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 25.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Suppliers.java
// Because Supplier is read-heavy, we use the "double-checked locking" pattern. if (delegate != SUCCESSFULLY_COMPUTED) { synchronized (this) { if (delegate != SUCCESSFULLY_COMPUTED) { T t = delegate.get(); value = t; delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED; return t; } } } // This is safe because we checked `delegate`.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 15.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
* the information of these hash codes in an ordered fashion. That is, whenever two equal hash * codes are produced by two calls to this method, it is <i>as likely as possible</i> that each * was computed from the <i>same</i> input hash codes in the <i>same</i> order. * * @throws IllegalArgumentException if {@code hashCodes} is empty, or the hash codes do not all * have the same bit length */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 09 00:37:15 GMT 2024 - 29.2K bytes - Viewed (0)