Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 64 for Longs (0.02 sec)

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

        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Bytes.toArray(bytes)).isEqualTo(array);
        assertThat(Bytes.toArray(shorts)).isEqualTo(array);
        assertThat(Bytes.toArray(ints)).isEqualTo(array);
        assertThat(Bytes.toArray(floats)).isEqualTo(array);
        assertThat(Bytes.toArray(longs)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            // Verify through toString that value is set
            assertTrue(info.toString().contains("endOfFile=" + endOfFile));
        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, 100L, 1024L, Long.MAX_VALUE, -1L, Long.MIN_VALUE })
        @DisplayName("Test constructor with various end of file values")
        void testConstructorWithVariousValues(long endOfFile) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/Stats.java

      /**
       * Returns statistics over a dataset containing the given values.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
       */
      public static Stats of(long... values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/StatsAccumulator.java

        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
       */
      public void addAll(long... values) {
        for (long value : values) {
          add(value);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/AbstractStreamingHasher.java

       */
      protected void processRemaining(ByteBuffer bb) {
        Java8Compatibility.position(bb, bb.limit()); // move at the end
        Java8Compatibility.limit(bb, chunkSize + 7); // get ready to pad with longs
        while (bb.position() < chunkSize) {
          bb.putLong(0);
        }
        Java8Compatibility.limit(bb, chunkSize);
        Java8Compatibility.flip(bb);
        process(bb);
      }
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Funnels.java

          return false;
        }
    
        @Override
        public int hashCode() {
          return SequentialFunnel.class.hashCode() ^ elementFunnel.hashCode();
        }
      }
    
      /**
       * Returns a funnel for longs.
       *
       * @since 13.0
       */
      public static Funnel<Long> longFunnel() {
        return LongFunnel.INSTANCE;
      }
    
      private enum LongFunnel implements Funnel<Long> {
        INSTANCE;
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/Funnels.java

          return false;
        }
    
        @Override
        public int hashCode() {
          return SequentialFunnel.class.hashCode() ^ elementFunnel.hashCode();
        }
      }
    
      /**
       * Returns a funnel for longs.
       *
       * @since 13.0
       */
      public static Funnel<Long> longFunnel() {
        return LongFunnel.INSTANCE;
      }
    
      private enum LongFunnel implements Funnel<Long> {
        INSTANCE;
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            response.readParameterWordsWireFormat(buffer, 0);
    
            assertEquals(fileAttribute, response.getAttributes());
        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1024L, 1048576L, 2147483647L })
        void testDifferentFileSizes(long fileSize) {
            // Test various file size values (excluding values that would overflow signed int)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/LongMath.java

     * IntMath} and {@link BigIntegerMath} respectively. For other common operations on {@code long}
     * values, see {@link com.google.common.primitives.Longs}.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    public final class LongMath {
      @VisibleForTesting static final long MAX_SIGNED_POWER_OF_TWO = 1L << (Long.SIZE - 2);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

     *       #toString} behavior you expect.
     *   <li>Offers useful operations beyond just {@code get} and {@code length}, so you don't have to
     *       hunt through classes like {@link Arrays} and {@link Longs} for them.
     *   <li>Supports a copy-free {@link #subArray} view, so methods that accept this type don't need to
     *       add overloads that accept start and end indexes.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top