Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 148 for Ints (0.02 sec)

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

     * href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @GwtCompatible
    public final class Ints extends IntsMethodsForWeb {
      private Ints() {}
    
      /**
       * The number of bytes required to represent a primitive {@code int} value.
       *
       * <p>Prefer {@link Integer#BYTES} instead.
       */
      // The constants value gets inlined here.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, new int[] {(int) 2, (int) 3})).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, new int[] {(int) 3, (int) 4})).isEqualTo(1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, new int[] {(int) 2, (int) 3})).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, new int[] {(int) 3, (int) 4})).isEqualTo(1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

         * All wire‑format methods should return zero regardless of inputs.
         */
        @Nested
        @DisplayName("Wire format method behaviour")
        class WireFormatMethods {
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE })
            @DisplayName("writeSetupWireFormat returns 0 for all indices")
            void writeSetupWireFormatReturnsZero(int index) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

            @DisplayName("Returns 0 with null array")
            void nullArray() {
                assertEquals(0, response.writeParameterWordsWireFormat(null, 0));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 5, 9 })
            @DisplayName("Returns 0 with valid array and various indices")
            void nonNullArray(int index) {
                byte[] arr = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

                ListTestSuiteBuilder.using(new IntsAsListTailSubListGenerator())
                    .named("Ints.asList, tail subList"),
                ListTestSuiteBuilder.using(new IntsAsListMiddleSubListGenerator())
                    .named("Ints.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
        for (ListTestSuiteBuilder<Integer> builder : builders) {
          suite.addTest(
              builder
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

        void constructorWithNullAndx() {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
            assertNotNull(msg, "Message must not be null after construction");
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 5, -1, 10 })
        @DisplayName("writeParameterWordsWireFormat always returns 0")
        void writeParameterWordsWireFormatReturnsZero(int index) {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. 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,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top