Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Longs (0.02 sec)

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

     * href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @GwtCompatible
    public final class Longs {
      private Longs() {}
    
      /**
       * The number of bytes required to represent a primitive {@code long} value.
       *
       * <p>Prefer {@link Long#BYTES} instead.
       */
      // The constants value gets inlined here.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.lastIndexOf(ARRAY1, 2L)).isEqualTo(-1);
        assertThat(Longs.lastIndexOf(ARRAY234, 1L)).isEqualTo(-1);
        assertThat(Longs.lastIndexOf(new long[] {-1L}, -1L)).isEqualTo(0);
        assertThat(Longs.lastIndexOf(ARRAY234, 2L)).isEqualTo(0);
        assertThat(Longs.lastIndexOf(ARRAY234, 3L)).isEqualTo(1);
        assertThat(Longs.lastIndexOf(ARRAY234, 4L)).isEqualTo(2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

      // Java 2nd Edition Item 76: Write readObject methods defensively.
      private transient AtomicLongArray longs;
    
      /**
       * Creates a new {@code AtomicDoubleArray} of the given length, with all elements initially zero.
       *
       * @param length the length of the array
       */
      public AtomicDoubleArray(int length) {
        this.longs = new AtomicLongArray(length);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. 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]);
        }
      };
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. 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;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/DiscreteDomain.java

       * <p>This method always returns the same object. That object is serializable; deserializing it
       * results in the same object too.
       *
       * @since 14.0 (since 10.0 as {@code DiscreteDomains.longs()})
       */
      public static DiscreteDomain<Long> longs() {
        return LongDomain.INSTANCE;
      }
    
      private static final class LongDomain extends DiscreteDomain<Long> implements Serializable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/DiscreteDomain.java

       * <p>This method always returns the same object. That object is serializable; deserializing it
       * results in the same object too.
       *
       * @since 14.0 (since 10.0 as {@code DiscreteDomains.longs()})
       */
      public static DiscreteDomain<Long> longs() {
        return LongDomain.INSTANCE;
      }
    
      private static final class LongDomain extends DiscreteDomain<Long> implements Serializable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/LittleEndianByteArray.java

    import static java.lang.invoke.MethodHandles.byteArrayViewVarHandle;
    import static java.nio.ByteOrder.LITTLE_ENDIAN;
    
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.primitives.Longs;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    import java.lang.invoke.VarHandle;
    import java.lang.reflect.Field;
    import java.nio.ByteOrder;
    import java.security.AccessController;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/QuantilesTest.java

    import com.google.common.collect.Ordering;
    import com.google.common.math.Quantiles.ScaleAndIndexes;
    import com.google.common.primitives.Doubles;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    import com.google.common.truth.Correspondence;
    import com.google.common.truth.Correspondence.BinaryPredicate;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Random;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/QuantilesTest.java

    import com.google.common.collect.Ordering;
    import com.google.common.math.Quantiles.ScaleAndIndexes;
    import com.google.common.primitives.Doubles;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    import com.google.common.truth.Correspondence;
    import com.google.common.truth.Correspondence.BinaryPredicate;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Random;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top