Home
last modified time | relevance | path

Searched refs:SignedBytes (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-tests/test/com/google/common/primitives/
DSignedBytesTest.java50 assertEquals(value, SignedBytes.checkedCast((long) value)); in testCheckedCast()
60 assertEquals(value, SignedBytes.saturatedCast((long) value)); in testSaturatedCast()
62 assertEquals(GREATEST, SignedBytes.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
63 assertEquals(LEAST, SignedBytes.saturatedCast(LEAST - 1L)); in testSaturatedCast()
64 assertEquals(GREATEST, SignedBytes.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
65 assertEquals(LEAST, SignedBytes.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
70 SignedBytes.checkedCast(value); in assertCastFails()
83 int actual = SignedBytes.compare(x, y); in testCompare()
99 SignedBytes.max(); in testMax_noArgs()
106 assertEquals(LEAST, SignedBytes.max(LEAST)); in testMax()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DSignedBytesTest.java47 assertEquals(value, SignedBytes.checkedCast((long) value)); in testCheckedCast()
57 assertEquals(value, SignedBytes.saturatedCast((long) value)); in testSaturatedCast()
59 assertEquals(GREATEST, SignedBytes.saturatedCast(GREATEST + 1L)); in testSaturatedCast()
60 assertEquals(LEAST, SignedBytes.saturatedCast(LEAST - 1L)); in testSaturatedCast()
61 assertEquals(GREATEST, SignedBytes.saturatedCast(Long.MAX_VALUE)); in testSaturatedCast()
62 assertEquals(LEAST, SignedBytes.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
67 SignedBytes.checkedCast(value); in assertCastFails()
80 int actual = SignedBytes.compare(x, y); in testCompare()
96 SignedBytes.max(); in testMax_noArgs()
103 assertEquals(LEAST, SignedBytes.max(LEAST)); in testMax()
[all …]
/external/guava/guava/src/com/google/common/primitives/
DSignedBytes.java42 public final class SignedBytes { class
43 private SignedBytes() {} in SignedBytes() method in SignedBytes
194 int result = SignedBytes.compare(left[i], right[i]); in compare()
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java25 import com.google.common.primitives.SignedBytes;
424 dout.writeByte(SignedBytes.checkedCast(strategy.ordinal()));