Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for immutability (0.14 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // Then
            assertEquals(bytes1, bytes2);
            assertEquals(SMBUtil.readInt2(buffer1, 0), SMBUtil.readInt2(buffer2, 10));
        }
    
        @Test
        @DisplayName("Should maintain immutability of structure size")
        void testStructureSizeImmutability() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/NotifyResponseTest.java

            // Test prepare method (should not throw exception)
            assertDoesNotThrow(() -> response.prepare(mockRequest));
        }
    
        @Test
        @DisplayName("Test NotifyResponse returned list immutability")
        void testNotifyResponseListImmutability() {
            List<FileNotifyInformation> inputList = new ArrayList<>(Arrays.asList(mockNotifyInfo1, mockNotifyInfo2));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Then
            assertTrue(request instanceof ServerMessageBlock2Request);
            assertTrue(request instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Should maintain immutability of structure size")
        void testStructureSizeImmutability() throws Exception {
            // Given
            byte[] buffer = new byte[2048];
    
            // When - encode at multiple positions
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/annotation/SecuredTest.java

            Secured secured = SecuredInterfaceImpl.class.getAnnotation(Secured.class);
            assertNull(secured); // Interface annotations are not inherited by implementing classes
        }
    
        // Test annotation array immutability
        public void test_annotationValueImmutability() {
            Secured secured = MultipleRolesClass.class.getAnnotation(Secured.class);
            String[] roles1 = secured.value();
            String[] roles2 = secured.value();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

    /**
     * An immutable array of {@code long} values, with an API resembling {@link List}.
     *
     * <p>Advantages compared to {@code long[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
     *       #toString} behavior you expect.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/ImmutableIntArray.java

    /**
     * An immutable array of {@code int} values, with an API resembling {@link List}.
     *
     * <p>Advantages compared to {@code int[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
     *       #toString} behavior you expect.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/AllocInfoTest.java

                // Then
                assertEquals(1024L * 1024L * 1024L * 60L, used); // 60GB used
            }
    
            @Test
            @DisplayName("Should maintain immutability")
            void shouldMaintainImmutability() {
                // Given
                long capacity = 1000L;
                long free = 500L;
                TestAllocInfo allocInfo = new TestAllocInfo(capacity, free);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

        return CollectCollectors.toImmutableSet();
      }
    
      /**
       * Returns the empty immutable set. Preferred over {@link Collections#emptySet} for code
       * consistency, and because the return type conveys the immutability guarantee.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings({"unchecked"}) // fully variant implementation (never actually produces any Es)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_2x.md

    ## Version 2.0.0-RC1
    
    _2014-05-23_
    
    OkHttp 2 is designed around a new API that is true to HTTP, with classes for
    requests, responses, headers, and calls. It uses modern Java patterns like
    immutability and chained builders. The API now offers asynchronous callbacks
    in addition to synchronous blocking calls.
    
    #### API Changes
    
     *  **New Request and Response types,** each with their own builder. There's also
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      /**
       * Verifies that the {@code Set} returned by {@code nodes} has the expected mutability property
       * (see the {@code Network} documentation for more information).
       */
      @Test
      public abstract void nodes_checkReturnedSetMutability();
    
      /**
       * Verifies that the {@code Set} returned by {@code edges} has the expected mutability property
       * (see the {@code Network} documentation for more information).
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top