Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Longs {
      private Longs() {}
    
      /**
       * The number of bytes required to represent a primitive {@code long} value.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#BYTES} instead.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Longs.java

     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Longs {
      private Longs() {}
    
      /**
       * The number of bytes required to represent a primitive {@code long} value.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#BYTES} instead.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.contains(EMPTY, (long) 1)).isFalse();
        assertThat(Longs.contains(ARRAY1, (long) 2)).isFalse();
        assertThat(Longs.contains(ARRAY234, (long) 1)).isFalse();
        assertThat(Longs.contains(new long[] {(long) -1}, (long) -1)).isTrue();
        assertThat(Longs.contains(ARRAY234, (long) 2)).isTrue();
        assertThat(Longs.contains(ARRAY234, (long) 3)).isTrue();
        assertThat(Longs.contains(ARRAY234, (long) 4)).isTrue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 10.3K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 21:04:48 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/LittleEndianByteArray.java

     * the License.
     */
    
    package com.google.common.hash;
    
    import static java.lang.Math.min;
    
    import com.google.common.primitives.Longs;
    import java.lang.reflect.Field;
    import java.nio.ByteOrder;
    import java.security.AccessController;
    import java.security.PrivilegedActionException;
    import java.security.PrivilegedExceptionAction;
    import sun.misc.Unsafe;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. android/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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  10. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top