Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 110 for xLongs (0.18 sec)

  1. android/guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

      private static final long[] longs = new long[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          exponents[i] = randomExponent();
          positive[i] = randomPositiveBigInteger(Long.SIZE - 1).longValue();
          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/AbstractByteHasher.java

    import static com.google.common.base.Preconditions.checkPositionIndexes;
    
    import com.google.common.primitives.Chars;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    import com.google.common.primitives.Shorts;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    
    /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ContiguousSet.java

       * @since 23.0
       */
      public static ContiguousSet<Long> closed(long lower, long upper) {
        return create(Range.closed(lower, upper), DiscreteDomain.longs());
      }
    
      /**
       * Returns a contiguous set containing all {@code int} values from {@code lower} (inclusive) to
       * {@code upper} (exclusive). If the endpoints are equal, an empty set is returned. (These are the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

      public static final long MAX_VALUE = -1L; // Equivalent to 2^64 - 1
    
      /**
       * A (self-inverse) bijection which converts the ordering on unsigned longs to the ordering on
       * longs, that is, {@code a <= b} as unsigned longs if and only if {@code flip(a) <= flip(b)} as
       * signed longs.
       */
      private static long flip(long a) {
        return a ^ Long.MIN_VALUE;
      }
    
      /**
    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)
  5. guava-tests/test/com/google/common/math/QuantilesTest.java

            .inOrder();
      }
    
      public void testScale_index_compute_longVarargs() {
        long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS);
        assertThat(Quantiles.scale(10).index(1).compute(dataset))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
        assertThat(dataset).asList().isEqualTo(SIXTEEN_SQUARES_LONGS);
      }
    
      public void testScale_index_compute_intVarargs() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesTest.java

            .inOrder();
      }
    
      public void testScale_index_compute_longVarargs() {
        long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS);
        assertThat(Quantiles.scale(10).index(1).compute(dataset))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
        assertThat(dataset).asList().isEqualTo(SIXTEEN_SQUARES_LONGS);
      }
    
      public void testScale_index_compute_intVarargs() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ComparisonChain.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.primitives.Booleans;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    import java.util.Comparator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility for performing a chained comparison statement. For example:
     *
     * <pre>{@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

          }
          return true;
        }
    
        private /* static */ long lowerEight(byte[] bytes) {
          return Longs.fromBytes(
              bytes[7], bytes[6], bytes[5], bytes[4], bytes[3], bytes[2], bytes[1], bytes[0]);
        }
    
        private /* static */ long upperEight(byte[] bytes) {
          return Longs.fromBytes(
              bytes[15], bytes[14], bytes[13], bytes[12], bytes[11], bytes[10], bytes[9], bytes[8]);
        }
      };
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 10.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

          SocketTimeoutException::class.java,
          "sent ping but didn't receive pong within 500ms (after 0 successful ping/pongs)",
        )
      }
    
      @Test
      fun unexpectedPongsDoNotInterfereWithFailureDetection() {
        client.initWebSocket(random, pingIntervalMillis = 500)
    
        // At 0ms the server sends 3 unexpected pongs. The client accepts 'em and ignores em.
        server.webSocket!!.pong("pong 1".encodeUtf8())
        client.processNextFrame()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/LongAddable.java

     * the License.
     */
    
    package com.google.common.hash;
    
    
    /**
     * Abstract interface for objects that can concurrently add longs.
     *
     * @author Louis Wasserman
     */
    @ElementTypesAreNonnullByDefault
    interface LongAddable {
      void increment();
    
      void add(long x);
    
      long sum();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 850 bytes
    - Viewed (0)
Back to top