- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for mutators (0.05 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
* underlying contents. * <li>All methods that return objects that can indirectly mutate the collection throw * UnsupportedOperationException when those mutators are called. * </ol> * * @param collection the presumed-immutable collection * @param sampleElement an element of the same type as that contained by {@code collection}.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
* underlying contents. * <li>All methods that return objects that can indirectly mutate the collection throw * UnsupportedOperationException when those mutators are called. * </ol> * * @param collection the presumed-immutable collection * @param sampleElement an element of the same type as that contained by {@code collection}.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Table.java
/** * Returns the hash code for this table. The hash code of a table is defined as the hash code of * its cell view, as returned by {@link #cellSet}. */ @Override int hashCode(); // Mutators /** Removes all mappings from the table. */ void clear(); /** * Associates the specified value with the specified keys. If the table already contained aRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/Table.java
/** * Returns the hash code for this table. The hash code of a table is defined as the hash code of * its cell view, as returned by {@link #cellSet}. */ @Override int hashCode(); // Mutators /** Removes all mappings from the table. */ void clear(); /** * Associates the specified value with the specified keys. If the table already contained aRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
final transient int size; ImmutableMultimap(ImmutableMap<K, ? extends ImmutableCollection<V>> map, int size) { this.map = map; this.size = size; } // mutators (not supported) /** * Guaranteed to throw an exception and leave the multimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 28.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
final transient int size; ImmutableMultimap(ImmutableMap<K, ? extends ImmutableCollection<V>> map, int size) { this.map = map; this.size = size; } // mutators (not supported) /** * Guaranteed to throw an exception and leave the multimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 27.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
multiset.add(KEY); multiset.add(KEY + "_2"); multiset.add(KEY); int mutations = 0; for (Iterator<String> it = multiset.iterator(); it.hasNext(); ) { it.next(); it.remove(); mutations++; } assertTrue(multiset.isEmpty()); assertEquals(3, mutations); } public void testSetCount_basic() { int initialCount = 20; int countToSet = 40;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 16.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java
?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>> parentBuilder) { // TODO: Once invariant support is added, supply invariants to each of the // derived suites, to check that mutations to the derived collections are // reflected in the underlying map. List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 20:54:16 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
batches.add(new String[] { "c" }); // second batch batches.add(new String[] {}); // last -> NO_MORE_FILES // send() answer that mutates the provided response when(tree.send(any(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class))).thenAnswer((InvocationOnMock inv) -> { Trans2FindFirst2Response resp = inv.getArgument(1);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
assertFalse(a.equals(null), "equals(null) should be false"); assertFalse(a.equals("not a blob"), "equals(other type) should be false"); } // Ensures clone() returns a deep copy; mutations are independent across instances @Test @DisplayName("clone: returns deep copy and independent state") void clone_returnsDeepCopy() { // Arrange byte[] data = new byte[] { 10, 20, 30 };
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0)