- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,124 for Collection (0.07 sec)
-
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
} private void assertCollectionSize(Collection<?> collection, int size) { assertEquals(size, collection.size()); if (size > 0) { assertFalse(collection.isEmpty()); } else { assertTrue(collection.isEmpty()); } assertEquals(size, Iterables.size(collection)); assertEquals(size, Iterators.size(collection.iterator())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
} private void assertCollectionSize(Collection<?> collection, int size) { assertEquals(size, collection.size()); if (size > 0) { assertFalse(collection.isEmpty()); } else { assertTrue(collection.isEmpty()); } assertEquals(size, Iterables.size(collection)); assertEquals(size, Iterators.size(collection.iterator())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Serialization.java
import java.io.ObjectOutputStream; import java.lang.reflect.Field; import java.util.Collection; import java.util.Map; import org.jspecify.annotations.Nullable; /** * Provides static methods for serializing collection classes. * * <p>This class assists the implementation of collection classes. Do not use this class to * serialize collections that are defined elsewhere. * * @author Jared Levy */ @GwtIncompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
* half of that is more awkward to arrange... */ private static <T> Iterable<T> iterable(Collection<T> collection) { // return collection::iterator; return new Iterable<T>() { @Override public Iterator<T> iterator() { return collection.iterator(); } }; } public void testEquals() { new EqualsTester()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/WrongType.java
*/ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; /** * A type which will never be used as the element type of any collection in our tests, and so can be * used to test how a Collection behaves when given input of the wrong type. */ @GwtCompatible public enum WrongType { VALUE
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 934 bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java
boolean defaultsToEmpty); /** * Creates a composite function from a collection of functions. * * @param functions A collection of functions, each taking a String as input and returning a String. * @return A function that applies each function in the collection in order until a non-null result is found. * If all functions return null, the composite function returns null.
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Mon Jan 13 16:14:35 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java
Helpers.assertEqualIgnoringOrder(getSampleElements(), asList(collection.stream().toArray())); } @CollectionFeature.Require(KNOWN_ORDER) public void testStreamToArrayKnownOrder() { assertEquals(getOrderedElements(), asList(collection.stream().toArray())); } public void testStreamCount() { assertEquals(getNumElements(), collection.stream().count()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 2.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.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 java.io.Serializable; import java.util.AbstractSet; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Set; /** * {@link Set} that is case-insensitive. * * @author higa */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Tables.java
public Map<C, V> row(@ParametricNullness R rowKey) { return Collections.unmodifiableMap(super.row(rowKey)); } @Override public Set<R> rowKeySet() { return Collections.unmodifiableSet(super.rowKeySet()); } @Override public Map<R, Map<C, V>> rowMap() { return unmodifiableMap(Maps.transformValues(super.rowMap(), Collections::unmodifiableMap)); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 24.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
public void testEquals_shorterList() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Lists of different sizes should not be equal.", getList().equals(new ArrayList<E>(fewerElements))); } public void testEquals_longerList() { Collection<E> moreElements = getSampleElements(getNumElements() + 1); assertFalse(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0)