- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for unmodifiable (0.04 sec)
-
guava/src/com/google/common/collect/Iterables.java
private Iterables() {} /** Returns an unmodifiable view of {@code iterable}. */ public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable( Iterable<? extends T> iterable) { checkNotNull(iterable); if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) { @SuppressWarnings("unchecked") // Since it's unmodifiable, the covariant cast is safe
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 43.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
} /** * Returns an unmodifiable view of the specified set of entries. The {@link Entry#setValue} * operation throws an {@link UnsupportedOperationException}, as do any operations that would * modify the returned set. * * @param entrySet the entries for which to return an unmodifiable view * @return an unmodifiable view of the entries */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 163.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ArrayTable.java
} // TODO(jlevy): Add eraseRow and eraseColumn methods? @Override public int size() { return rowList.size() * columnList.size(); } /** * Returns an unmodifiable set of all row key / column key / value triplets. Changes to the table * will update the returned set. * * <p>The returned set's iterator traverses the mappings with the first row key, the mappings with
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 26.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
this.map = map; totalSize = 0; for (Collection<V> values : map.values()) { checkArgument(!values.isEmpty()); totalSize += values.size(); } } /** * Creates an unmodifiable, empty collection of values. * * <p>This is used in {@link #removeAll} on an empty key. */ Collection<V> createUnmodifiableEmptyCollection() { return unmodifiableCollectionSubclass(createCollection());Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 48.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
/* No aliasing on inverse operations. */ assertSame(unmod.inverse(), unmod.inverse()); assertSame(unmod, unmod.inverse().inverse()); /* Unmodifiable is a view. */ mod.put(4, "four"); assertEquals(true, unmod.get(4).equals("four")); assertEquals(true, unmod.inverse().get("four").equals(4));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 62.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
/* No aliasing on inverse operations. */ assertSame(unmod.inverse(), unmod.inverse()); assertSame(unmod, unmod.inverse().inverse()); /* Unmodifiable is a view. */ mod.put(4, "four"); assertEquals(true, unmod.get(4).equals("four")); assertEquals(true, unmod.inverse().get("four").equals(4));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0) -
guava/src/com/google/common/collect/ArrayListMultimap.java
* value and the old value. * * <p>Keys and values may be null. All optional multimap methods are supported, and all returned * views are modifiable. * * <p>The lists returned by {@link #get}, {@link #removeAll}, and {@link #replaceValues} all * implement {@link java.util.RandomAccess}. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 05 23:15:58 UTC 2025 - 6.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java
assertEquals(123, metaDataMap.get("key2")); assertEquals(true, metaDataMap.get("key3")); } public void test_metaDataMapModifiable() { // Test that metadata map is modifiable ResponseData data = new ResponseData(); data.addMetaData("key1", "value1"); Map<String, Object> metaDataMap = data.getMetaDataMap(); metaDataMap.put("key2", "value2");
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 14.3K bytes - Viewed (0)