Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for Longs (0.01 sec)

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

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

            assertEquals(original.toString(), decoded.toString());
        }
    
        /**
         * Test FileEndOfFileInformation with various end of file values
         */
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 1024L, 1048576L })
        @DisplayName("Test FileEndOfFileInformation with various values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/math/Quantiles.java

              "Quantile indexes must be between 0 and the scale, which is " + scale);
        }
      }
    
      private static double[] longsToDoubles(long[] longs) {
        int len = longs.length;
        double[] doubles = new double[len];
        for (int i = 0; i < len; i++) {
          doubles[i] = longs[i];
        }
        return doubles;
      }
    
      private static double[] intsToDoubles(int[] ints) {
        int len = ints.length;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            void testIsResponseAsyncTrue() {
                testRequest.setAsyncId(12345L);
                assertTrue(testRequest.isResponseAsync());
            }
    
            @ParameterizedTest
            @ValueSource(longs = { 1L, 100L, Long.MAX_VALUE })
            @DisplayName("isResponseAsync should return true for various non-zero asyncIds")
            void testIsResponseAsyncWithDifferentValues(long asyncId) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            assertEquals(nameBytes.length, SMBUtil.readInt4(buffer, 8));
        }
    
        @ParameterizedTest
        @DisplayName("Test with various timeout values")
        @ValueSource(longs = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 1000L, -1000L })
        void testWithVariousTimeoutValues(long timeout) {
            // Setup
            String pipeName = "TestPipe";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.math.StatsTesting.ManyValues;
    import com.google.common.primitives.Doubles;
    import com.google.common.primitives.Longs;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link StatsAccumulator}. This tests the stats methods for instances built with {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

        // Serial form:
        // 1 signed byte for the strategy
        // 1 unsigned byte for the number of hash functions
        // 1 big endian int, the number of longs in our bitset
        // N big endian longs of our bitset
        DataOutputStream dout = new DataOutputStream(out);
        dout.writeByte(SignedBytes.checkedCast(strategy.ordinal()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Doubles.toArray(bytes)).isEqualTo(array);
        assertThat(Doubles.toArray(shorts)).isEqualTo(array);
        assertThat(Doubles.toArray(ints)).isEqualTo(array);
        assertThat(Doubles.toArray(floats)).isEqualTo(array);
        assertThat(Doubles.toArray(longs)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ShortsTest.java

        List<Long> longs = Arrays.asList(0L, 1L, 2L);
        List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0);
    
        assertThat(Shorts.toArray(bytes)).isEqualTo(array);
        assertThat(Shorts.toArray(shorts)).isEqualTo(array);
        assertThat(Shorts.toArray(ints)).isEqualTo(array);
        assertThat(Shorts.toArray(floats)).isEqualTo(array);
        assertThat(Shorts.toArray(longs)).isEqualTo(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
Back to top