Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for UnsignedInts (0.07 sec)

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

     * primitive utilities</a>.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class UnsignedInts {
      static final long INT_MASK = 0xffffffffL;
    
      private UnsignedInts() {}
    
      static int flip(int value) {
        return value ^ Integer.MIN_VALUE;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/UnsignedInts.java

     * primitive utilities</a>.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class UnsignedInts {
      static final long INT_MASK = 0xffffffffL;
    
      private UnsignedInts() {}
    
      static int flip(int value) {
        return value ^ Integer.MIN_VALUE;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        for (long value : UNSIGNED_INTS) {
          assertThat(UnsignedInts.toLong(UnsignedInts.saturatedCast(value))).isEqualTo(value);
        }
        assertThat(UnsignedInts.saturatedCast(1L << 32)).isEqualTo(GREATEST);
        assertThat(UnsignedInts.saturatedCast(-1L)).isEqualTo(LEAST);
        assertThat(UnsignedInts.saturatedCast(Long.MAX_VALUE)).isEqualTo(GREATEST);
        assertThat(UnsignedInts.saturatedCast(Long.MIN_VALUE)).isEqualTo(LEAST);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedInteger.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.primitives.UnsignedInts.INT_MASK;
    import static com.google.common.primitives.UnsignedInts.compare;
    import static com.google.common.primitives.UnsignedInts.toLong;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedInteger.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.primitives.UnsignedInts.INT_MASK;
    import static com.google.common.primitives.UnsignedInts.compare;
    import static com.google.common.primitives.UnsignedInts.toLong;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/package-info.java

     *         <li>{@link UnsignedBytes}
     *       </ul>
     *   <li>{@link Chars}
     *   <li>{@link Doubles}
     *   <li>{@link Floats}
     *   <li>{@link Ints}
     *       <ul>
     *         <li>{@link UnsignedInts}
     *       </ul>
     *   <li>{@link Longs}
     *       <ul>
     *         <li>{@link UnsignedLongs}
     *       </ul>
     *   <li>{@link Shorts}
     * </ul>
     *
     * <h3>General static utilities</h3>
     *
     * <ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/HashCode.java

    import static com.google.common.base.Preconditions.checkState;
    import static java.lang.Math.min;
    
    import com.google.common.base.Preconditions;
    import com.google.common.primitives.UnsignedInts;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    
    /**
     * An immutable hash code of arbitrary bit length.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/HashCode.java

    import static com.google.common.base.Preconditions.checkState;
    import static java.lang.Math.min;
    
    import com.google.common.base.Preconditions;
    import com.google.common.primitives.UnsignedInts;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    
    /**
     * An immutable hash code of arbitrary bit length.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Hashing.java

       * generated using this are byte-wise identical to those created using the C++ version, but note
       * that this uses unsigned integers (see {@link com.google.common.primitives.UnsignedInts}).
       * Comparisons between the two should take this into account.
       *
       * <p>Fingerprint2011() is a form of Murmur2 on strings up to 32 bytes and a form of CityHash for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top