- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for SignedBytes (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/primitives/SignedBytesTest.java
assertThat(SignedBytes.saturatedCast(LEAST - 1L)).isEqualTo(LEAST); assertThat(SignedBytes.saturatedCast(Long.MAX_VALUE)).isEqualTo(GREATEST); assertThat(SignedBytes.saturatedCast(Long.MIN_VALUE)).isEqualTo(LEAST); } private static void assertCastFails(long value) { try { SignedBytes.checkedCast(value); fail("Cast to byte should have failed: " + value);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 7K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
* <i>unsigned</i> (that is, any negative value {@code b} is treated as the positive value {@code * 256 + b}). The corresponding methods that treat the values as signed are found in {@link * SignedBytes}, and the methods for which signedness is not an issue are in {@link Bytes}. * * <p>See the Guava User Guide article on <a * href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 21K bytes - Click Count (0)