MCPcopy
hub / github.com/google/guava / valueOf

Method valueOf

guava/src/com/google/common/primitives/UnsignedLong.java:78–82  ·  view source on GitHub ↗

Returns an {@code UnsignedLong} representing the same value as the specified {@code long}. @throws IllegalArgumentException if {@code value} is negative @since 14.0

(long value)

Source from the content-addressed store, hash-verified

76 * @since 14.0
77 */
78 @CanIgnoreReturnValue
79 public static UnsignedLong valueOf(long value) {
80 checkArgument(value >= 0, "value (%s) is outside the range for an unsigned long value", value);
81 return fromLongBits(value);
82 }
83
84 /**
85 * Returns a {@code UnsignedLong} representing the same value as the specified {@code BigInteger}.

Callers 15

testMurmurHash64Method · 0.95
testValueOfLongMethod · 0.95
testValueOfBigIntegerMethod · 0.95
testEqualsMethod · 0.95
BigIntegerDomainClass · 0.45
offsetMethod · 0.45
toStringMethod · 0.45
defaultValueMethod · 0.45
stringValueOfMethod · 0.45
lenientFormatMethod · 0.45
onMethod · 0.45
withKeyValueSeparatorMethod · 0.45

Calls 5

fromLongBitsMethod · 0.95
parseUnsignedLongMethod · 0.95
checkArgumentMethod · 0.45
checkNotNullMethod · 0.45
longValueMethod · 0.45

Tested by 4

testMurmurHash64Method · 0.76
testValueOfLongMethod · 0.76
testValueOfBigIntegerMethod · 0.76
testEqualsMethod · 0.76