Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 202 for Ints (0.18 seconds)

  1. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            assertNotNull(resp, "Response instance should be created");
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat")
        class WriteBytesWireFormat {
    
            @ParameterizedTest
            @ValueSource(ints = { -10, -1, 0, 1, 42 })
            @DisplayName("Returns 0 regardless of dst and index")
            void returnsZero_forVariousIndexes(int index) {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testIteratorMinAndMax() {
        List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
        assertEquals(9, (int) numberOrdering.max(ints.iterator()));
        assertEquals(0, (int) numberOrdering.min(ints.iterator()));
    
        // when the values are the same, the first argument should be returned
        Integer a = new Integer(4);
        Integer b = new Integer(4);
        ints = Lists.newArrayList(a, b, b);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testIteratorMinAndMax() {
        List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
        assertEquals(9, (int) numberOrdering.max(ints.iterator()));
        assertEquals(0, (int) numberOrdering.min(ints.iterator()));
    
        // when the values are the same, the first argument should be returned
        Integer a = new Integer(4);
        Integer b = new Integer(4);
        ints = Lists.newArrayList(a, b, b);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        }
    
        /**
         * Validate that the constructor masks the supplied value to its
         * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short).
         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 })
        void constructorMasksValue(int input) {
            NdrShort ns = new NdrShort(input);
            // NdrShort masks to 0xFF (8 bits) in its constructor
            int expected = input & 0xFF;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

                notifyInfo.decode(buffer, 0, buffer.length);
            }, "Non aligned nextEntryOffset");
        }
    
        @ParameterizedTest
        @DisplayName("Test decode with various action values")
        @ValueSource(ints = { FileNotifyInformation.FILE_ACTION_ADDED, FileNotifyInformation.FILE_ACTION_REMOVED,
                FileNotifyInformation.FILE_ACTION_MODIFIED, FileNotifyInformation.FILE_ACTION_RENAMED_OLD_NAME,
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Ints;
    import java.util.List;
    import java.util.Set;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Create integer sets for collection tests.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @NullMarked
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Ints;
    import java.util.List;
    import java.util.Set;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Create integer sets for collection tests.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @NullMarked
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                }, "Expected structureSize = 17");
            }
    
            @ParameterizedTest
            @DisplayName("Should read various count values")
            @ValueSource(ints = { 0, 1, 100, 1024, 65536, Integer.MAX_VALUE })
            void testReadVariousCountValues(int count) throws SMBProtocolDecodingException {
                byte[] buffer = createValidWriteResponse(count, 0);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  9. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

    package com.google.common.cache;
    
    import com.google.caliper.AfterExperiment;
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.primitives.Ints;
    import java.util.Random;
    import java.util.concurrent.atomic.AtomicLong;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Single-threaded benchmark for {@link LoadingCache}.
     *
     * @author Charles Fry
     */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/CompactHashing.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static java.lang.Math.max;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.primitives.Ints;
    import java.util.Arrays;
    import java.util.Objects;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Helper classes and static methods for implementing compact hash-based collections.
     *
     * @author Jon Noack
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 7K bytes
    - Click Count (0)
Back to Top