- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 998 for Value (0.18 sec)
-
android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
for (int value : TEST_INTS) { assertWithMessage(UnsignedInts.toString(value)) .that(UnsignedInteger.fromIntBits(value).intValue()) .isEqualTo(value); } } public void testFromIntBitsLongValue() { for (int value : TEST_INTS) { long expected = value & 0xffffffffL; assertWithMessage(UnsignedInts.toString(value))
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Jun 01 09:32:35 GMT 2023 - 9.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
assertWithMessage(UnsignedLongs.toString(value)) .that(UnsignedLong.fromLongBits(value).longValue()) .isEqualTo(value); } } public void testAsUnsignedBigIntegerValue() { for (long value : TEST_LONGS) { BigInteger expected = (value >= 0) ? BigInteger.valueOf(value) : BigInteger.valueOf(value).add(BigInteger.ZERO.setBit(64));
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 06 16:10:08 GMT 2024 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilderSpec.java
public final class CacheBuilderSpec { /** Parses a single value. */ private interface ValueParser { void parse(CacheBuilderSpec spec, String key, @CheckForNull String value); } /** Splits each key-value pair. */ private static final Splitter KEYS_SPLITTER = Splitter.on(',').trimResults(); /** Splits the key from the value. */ private static final Splitter KEY_VALUE_SPLITTER = Splitter.on('=').trimResults();
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Aug 22 14:27:44 GMT 2022 - 18.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/SignedBytes.java
/** * Returns the {@code byte} value that is equal to {@code value}, if possible. * * @param value any value in the range of the {@code byte} type * @return the {@code byte} value that equals {@code value} * @throws IllegalArgumentException if {@code value} is greater than {@link Byte#MAX_VALUE} or * less than {@link Byte#MIN_VALUE} */ public static byte checkedCast(long value) { byte result = (byte) value;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 22 13:09:25 GMT 2021 - 7.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Shorts.java
* * @param value any value in the range of the {@code short} type * @return the {@code short} value that equals {@code value} * @throws IllegalArgumentException if {@code value} is greater than {@link Short#MAX_VALUE} or * less than {@link Short#MIN_VALUE} */ public static short checkedCast(long value) { short result = (short) value; checkArgument(result == value, "Out of range: %s", value);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 25.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Count.java
import javax.annotation.CheckForNull; /** * A mutable value of type {@code int}, for multisets to use in tracking counts of values. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault final class Count implements Serializable { private int value; Count(int value) { this.value = value; } public int get() { return value; } public void add(int delta) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Aug 05 00:40:25 GMT 2021 - 1.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java
return result; } /** * Returns the value associated with {@code key}, or zero if there is no value associated with * {@code key}. */ public long get(K key) { AtomicLong atomic = map.get(key); return atomic == null ? 0L : atomic.get(); } /** * Increments by one the value currently associated with {@code key}, and returns the new value. */ @CanIgnoreReturnValue
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 14.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* @return the previous value */ public final double getAndSet(int i, double newValue) { long next = doubleToRawLongBits(newValue); return longBitsToDouble(longs.getAndSet(i, next)); } /** * Atomically sets the element at position {@code i} to the given updated value if the current * value is <a href="#bitEquals">bitwise equal</a> to the expected value. * * @param i the index
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 04 09:45:04 GMT 2023 - 8K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* * @param value a primitive {@code long} value * @return a hash code for the value */ public static int hashCode(long value) { return (int) (value ^ (value >>> 32)); } /** * Compares the two specified {@code long} values. The sign of the value returned is the same as * that of {@code ((Long) a).compareTo(b)}. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 28.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java
public class UnhashableObject implements Comparable<UnhashableObject> { private final int value; public UnhashableObject(int value) { this.value = value; } @Override public boolean equals(@Nullable Object object) { if (object instanceof UnhashableObject) { UnhashableObject that = (UnhashableObject) object; return this.value == that.value; } return false; } @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 20 11:19:03 GMT 2023 - 1.6K bytes - Viewed (0)