- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,314 for collectionOf (0.17 sec)
-
android/guava/src/com/google/common/collect/Ordering.java
* @since 8.0 */ public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) { if (iterable instanceof Collection) { Collection<E> collection = (Collection<E>) iterable; if (collection.size() <= 2L * k) { // In this case, just dumping the collection to an array and sorting is // faster than using the implementation for Iterator, which is // specialized for k much smaller than n.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
return Collections.unmodifiableCollection(attached); } @Override public Collection<ProducedArtifact> getAllArtifacts(Project project) { ArrayList<ProducedArtifact> result = new ArrayList<>(2); result.addAll(project.getArtifacts()); result.addAll(getAttachedArtifacts(project)); return Collections.unmodifiableCollection(result); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.3K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java
} } @Override public Collection<? extends Metadata> prepare(Collection<? extends Artifact> artifacts) { return Collections.emptyList(); } @Override public Artifact transformArtifact(Artifact artifact) { return artifact; } @Override public Collection<? extends Metadata> finish(Collection<? extends Artifact> artifacts) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* traversal order of the collection's iterator. * * @param capacity the capacity of this queue * @param fair if {@code true} then queue accesses for threads blocked on insertion or removal, * are processed in FIFO order; if {@code false} the access order is unspecified. * @param c the collection of elements to initially contain
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
} } private <T> Collection<T> getExtensionComponents(Collection<MavenProject> projects, Class<T> role) { Collection<T> foundComponents = new LinkedHashSet<>(); foundComponents.addAll(lookup.lookupList(role)); foundComponents.addAll(getProjectScopedExtensionComponents(projects, role)); return foundComponents; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 27.5K bytes - Viewed (1) -
guava/src/com/google/common/primitives/Bytes.java
* to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Byte>} before 12.0) */ public static byte[] toArray(Collection<? extends Number> collection) { if (collection instanceof ByteArrayAsList) { return ((ByteArrayAsList) collection).toByteArray(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 15.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java
return standardRemove(object); } @Override public boolean removeAll(Collection<?> collection) { return standardRemoveAll(collection); } @Override public boolean retainAll(Collection<?> collection) { return standardRetainAll(collection); } @Override public Object[] toArray() { return standardToArray(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Map<NonSerializableClass, String> map = RegularImmutableMap.fromEntries(ImmutableMap.entryOf(new NonSerializableClass(), "value")); Collection<String> collection = map.values(); LenientSerializableTester.reserializeAndAssertElementsEqual(collection); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testValuesCollectionIsSerializable_jdkBackedImmutableMap() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
*/ package com.google.common.collect; import static com.google.common.base.Preconditions.checkState; import static java.util.Collections.synchronizedSet; import static java.util.Collections.unmodifiableSet; import com.google.common.base.Equivalence; import java.util.Collection; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.Map; import java.util.Queue; import java.util.Random;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
public Object[] toArray() { /* * ObjectArrays.toArrayImpl returns `@Nullable Object[]` rather than `Object[]` but only because * it can be used with collections that may contain null. This collection is a collection of * non-null elements, so we can treat it as a plain `Object[]`. */ @SuppressWarnings("nullness") Object[] result = ObjectArrays.toArrayImpl(this); return result; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 19 16:21:24 UTC 2024 - 15.5K bytes - Viewed (0)