- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 648 for Fong (0.18 sec)
-
android/guava-tests/test/com/google/common/math/LongMathTest.java
assertMean(0, 0, 0); assertMean(-1, -1, -1); assertMean(Long.MIN_VALUE, Long.MIN_VALUE, Long.MIN_VALUE); assertMean(Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE); // Exhaustive checks for (long x : ALL_LONG_CANDIDATES) { for (long y : ALL_LONG_CANDIDATES) { assertMean(x, y); } } } /** Helper method that asserts the arithmetic mean of x and y is equal to the expectedMean. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
public class UninterruptiblesTest extends TestCase { private static final String EXPECTED_TAKE = "expectedTake"; /** Timeout to use when we don't expect the timeout to expire. */ private static final long LONG_DELAY_MS = 2500; private static final long SLEEP_SLACK = 2; private final TearDownStack tearDownStack = new TearDownStack(); // NOTE: All durations in these tests are expressed in milliseconds @Override
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 31.7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/LittleEndianByteArray.java
public long getLongLittleEndian(byte[] array, int offset) { return theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET); } @Override public void putLongLittleEndian(byte[] array, int offset, long value) { theUnsafe.putLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET, value); } }, UNSAFE_BIG_ENDIAN { @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 9.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/Utf8Test.java
* @param start the starting bytes encoded as a long as big-endian * @param lim the limit of bytes to process encoded as a long as big-endian, or -1 to mean the max * limit for numBytes */ @GwtIncompatible // java.nio.charset.Charset private static void testBytes(int numBytes, long expectedCount, long start, long lim) { byte[] bytes = new byte[numBytes]; if (lim == -1) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
+ (33333333.0 - LONG_MANY_VALUES_MEAN) * (33333333.0 - LONG_MANY_VALUES_MEAN) + (-44444444.0 - LONG_MANY_VALUES_MEAN) * (-44444444.0 - LONG_MANY_VALUES_MEAN) + (5555555555.0 - LONG_MANY_VALUES_MEAN) * (5555555555.0 - LONG_MANY_VALUES_MEAN); static final double LONG_MANY_VALUES_MAX = 5555555555.0; static final double LONG_MANY_VALUES_MIN = -44444444.0;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 22.4K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/LongAdder.java
@GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault final class LongAdder extends Striped64 implements Serializable, LongAddable { private static final long serialVersionUID = 7249069246863182397L; /** Version of plus for use in retryUpdate */ @Override final long fn(long v, long x) { return v + x; } /** Creates a new adder with initial sum of zero. */ public LongAdder() {} /** * Adds the given value.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jun 15 18:00:07 GMT 2021 - 5.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java
return NeverScheduledFuture.create(); } private static class NeverScheduledFuture<V> extends AbstractFuture<V> implements ListenableScheduledFuture<V> { static <V> NeverScheduledFuture<V> create() { return new NeverScheduledFuture<>(); } @Override public long getDelay(TimeUnit unit) { return Long.MAX_VALUE;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri May 26 22:04:00 GMT 2023 - 6.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Internal.java
* * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair. */ @SuppressWarnings({ // We use this method only for cases in which we need to decompose to primitives.
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Jan 11 14:30:06 GMT 2024 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Internal.java
* * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair. */ @SuppressWarnings({ // We use this method only for cases in which we need to decompose to primitives.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Jan 11 14:30:06 GMT 2024 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharStreams.java
* Returns the total number of chars read. Does not close the stream. * * @since 20.0 */ @CanIgnoreReturnValue public static long exhaust(Readable readable) throws IOException { long total = 0; long read; CharBuffer buf = createBuffer(); while ((read = readable.read(buf)) != -1) { total += read; Java8Compatibility.clear(buf); } return total;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 10.9K bytes - Viewed (0)