Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for parseUnsignedLong (0.21 sec)

  1. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.parseUnsignedLong("18446744073709551615"))
            .isEqualTo(0xffffffffffffffffL);
        assertThat(UnsignedLongs.parseUnsignedLong("9223372036854775807"))
            .isEqualTo(0x7fffffffffffffffL);
        assertThat(UnsignedLongs.parseUnsignedLong("18382112080831834642"))
            .isEqualTo(0xff1a618b7f65ea12L);
        assertThat(UnsignedLongs.parseUnsignedLong("6504067269626408013"))
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.parseUnsignedLong("18446744073709551615"))
            .isEqualTo(0xffffffffffffffffL);
        assertThat(UnsignedLongs.parseUnsignedLong("9223372036854775807"))
            .isEqualTo(0x7fffffffffffffffL);
        assertThat(UnsignedLongs.parseUnsignedLong("18382112080831834642"))
            .isEqualTo(0xff1a618b7f65ea12L);
        assertThat(UnsignedLongs.parseUnsignedLong("6504067269626408013"))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
        // Given that we make three calls per pass, we scale reps down in order
        // to do a comparable amount of work to other measurements.
        int scaledReps = reps / 3 + 1;
        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.parseUnsignedLong(decimalStrings[j]);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
        // Given that we make three calls per pass, we scale reps down in order
        // to do a comparable amount of work to other measurements.
        int scaledReps = reps / 3 + 1;
        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.parseUnsignedLong(decimalStrings[j]);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       *
       * <p><b>Java 8+ users:</b> use {@link Long#parseUnsignedLong(String)} instead.
       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code long}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Long#parseLong(String)})
       */
      @CanIgnoreReturnValue
      public static long parseUnsignedLong(String string) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLong.java

       *     Character#MAX_RADIX}
       */
      @CanIgnoreReturnValue
      public static UnsignedLong valueOf(String string, int radix) {
        return fromLongBits(UnsignedLongs.parseUnsignedLong(string, radix));
      }
    
      /**
       * Returns the result of adding this and {@code val}. If the result would have more than 64 bits,
       * returns the low 64 bits of the result.
       *
       * @since 14.0
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 8.9K bytes
    - Viewed (0)
Back to top