Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for immutability (0.12 sec)

  1. guava/src/com/google/common/hash/HashCode.java

       * Returns a mutable view of the underlying bytes for the given {@code HashCode} if it is a
       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
       * array or else you will break the immutability contract of {@code HashCode}.
       */
      byte[] getBytesInternal() {
        return asBytes();
      }
    
      /**
       * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/HashCode.java

       * Returns a mutable view of the underlying bytes for the given {@code HashCode} if it is a
       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
       * array or else you will break the immutability contract of {@code HashCode}.
       */
      byte[] getBytesInternal() {
        return asBytes();
      }
    
      /**
       * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableCollection.java

     * package, whether it is a subtype of {@code ImmutableCollection} or not.
     *
     * <h4>Guarantees</h4>
     *
     * <p>Each makes the following guarantees:
     *
     * <ul>
     *   <li><b>Shallow immutability.</b> Elements can never be added, removed or replaced in this
     *       collection. This is a stronger guarantee than that of {@link
     *       Collections#unmodifiableCollection}, whose contents change whenever the wrapped collection
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 14:49:24 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 14:49:24 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top