- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,740 for collection (0.15 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java
@CollectionFeature.Require(SUPPORTS_REMOVE) public void testClear() { collection.clear(); assertTrue("After clear(), a collection should be empty.", collection.isEmpty()); assertEquals(0, collection.size()); assertFalse(collection.iterator().hasNext()); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Shorts.java
* to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Short>} before 12.0) */ public static short[] toArray(Collection<? extends Number> collection) { if (collection instanceof ShortArrayAsList) { return ((ShortArrayAsList) collection).toShortArray(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 25.5K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Shorts.java
* to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Short>} before 12.0) */ public static short[] toArray(Collection<? extends Number> collection) { if (collection instanceof ShortArrayAsList) { return ((ShortArrayAsList) collection).toShortArray(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 25.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMultimap.java
for (Collection<V> collection : asMap().values()) { if (collection.contains(value)) { return true; } } return false; } @Override public boolean containsEntry(@CheckForNull Object key, @CheckForNull Object value) { Collection<V> collection = asMap().get(key); return collection != null && collection.contains(value); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 7.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java
return standardRemove(object); } @Override public boolean removeAll(Collection<?> collection) { return standardRemoveAll(collection); } @Override public boolean retainAll(Collection<?> collection) { return standardRetainAll(collection); } @Override public int size() { return standardSize(); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.4K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataGenerator.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
* words, for the default {@code expectContents()} implementation, the number of occurrences of * each given element has increased by one since the test collection was created, and the number * of occurrences of all other elements has not changed. * * <p>Note: This means that a test like the following will fail if {@code collection} is a {@code * Set}: * * <pre>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
K key = entry.getKey(); V value = entry.getValue(); Collection<V> collection = multimap().get(key); assertNotNull(collection); Collection<V> expectedCollection = copyToList(collection); multimap().remove(key, value); expectedCollection.remove(value); assertEqualIgnoringOrder(expectedCollection, collection); assertEquals(!expectedCollection.isEmpty(), multimap().containsKey(key));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
K key = entry.getKey(); V value = entry.getValue(); Collection<V> collection = multimap().get(key); assertNotNull(collection); Collection<V> expectedCollection = copyToList(collection); multimap().remove(key, value); expectedCollection.remove(value); assertEqualIgnoringOrder(expectedCollection, collection); assertEquals(!expectedCollection.isEmpty(), multimap().containsKey(key));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/MapsTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.collection; import static org.codelibs.core.collection.Maps.map; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.util.Map; import org.junit.Test; /** * @author koichik */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.2K bytes - Viewed (0)