Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for UnsignedBytes (0.06 seconds)

  1. android/guava/src/com/google/common/primitives/UnsignedBytes.java

     *
     * @author Kevin Bourrillion
     * @author Martin Buchholz
     * @author Hiroshi Yamauchi
     * @author Louis Wasserman
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class UnsignedBytes {
      private UnsignedBytes() {}
    
      /**
       * The largest power of two that can be represented as an unsigned {@code byte}.
       *
       * @since 10.0
       */
      public static final byte MAX_POWER_OF_TWO = (byte) 0x80;
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
        assertThat(UnsignedBytes.toInt((byte) -1)).isEqualTo(255);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/package-info.java

     * </ul>
     *
     * <h3>Per-type static utilities</h3>
     *
     * <ul>
     *   <li>{@link Booleans}
     *   <li>{@link Bytes}
     *       <ul>
     *         <li>{@link SignedBytes}
     *         <li>{@link UnsignedBytes}
     *       </ul>
     *   <li>{@link Chars}
     *   <li>{@link Doubles}
     *   <li>{@link Floats}
     *   <li>{@link Ints}
     *       <ul>
     *         <li>{@link UnsignedInts}
     *       </ul>
     *   <li>{@link Longs}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 03 15:30:05 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/SignedBytes.java

     * 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>.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    // TODO(kevinb): how to prevent warning on UnsignedBytes when building GWT
    // javadoc?
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 7.2K bytes
    - Click Count (0)
  5. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE;
      }
    
      @Benchmark
      void longEqualJava(int reps) {
        for (int i = 0; i < reps; ++i) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
        assertThat(UnsignedBytes.toInt((byte) -1)).isEqualTo(255);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 14K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Bytes.java

     * and {@link UnsignedBytes}.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    // TODO(kevinb): how to prevent warning on UnsignedBytes when building GWT
    // javadoc?
    @GwtCompatible
    public final class Bytes {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/base/Throwables.java

        checkNotNull(t);
        /*
         * TODO(cpovirk): Consider optimizing iterator() to catch IOOBE instead of doing bounds checks.
         *
         * TODO(cpovirk): Consider the UnsignedBytes pattern if it performs faster and doesn't cause
         * AOSP grief.
         */
        return new AbstractList<StackTraceElement>() {
          /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/base/Throwables.java

        checkNotNull(t);
        /*
         * TODO(cpovirk): Consider optimizing iterator() to catch IOOBE instead of doing bounds checks.
         *
         * TODO(cpovirk): Consider the UnsignedBytes pattern if it performs faster and doesn't cause
         * AOSP grief.
         */
        return new AbstractList<StackTraceElement>() {
          /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/hash/BloomFilter.java

    import com.google.common.hash.BloomFilterStrategies.LockFreeBitArray;
    import com.google.common.math.DoubleMath;
    import com.google.common.primitives.SignedBytes;
    import com.google.common.primitives.UnsignedBytes;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.InlineMe;
    import java.io.DataInputStream;
    import java.io.DataOutputStream;
    import java.io.IOException;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 10 22:28:12 GMT 2026
    - 27.6K bytes
    - Click Count (0)
Back to Top