- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for Collection (0.09 sec)
-
android/guava/src/com/google/common/collect/Sets.java
checkNotNull(collection); return (collection instanceof EnumSet) ? EnumSet.complementOf((EnumSet<E>) collection) : makeComplementByHand(collection, type); } @J2ktIncompatible @GwtIncompatible private static <E extends Enum<E>> EnumSet<E> makeComplementByHand( Collection<E> collection, Class<E> type) { EnumSet<E> result = EnumSet.allOf(type);
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-21 14:28 - 78.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Synchronized.java
} private static <E extends @Nullable Object> Collection<E> typePreservingCollection( Collection<E> collection, @CheckForNull Object mutex) { if (collection instanceof SortedSet) { return sortedSet((SortedSet<E>) collection, mutex); } if (collection instanceof Set) { return set((Set<E>) collection, mutex); } if (collection instanceof List) {
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 53.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Synchronized.java
} private static <E extends @Nullable Object> Collection<E> typePreservingCollection( Collection<E> collection, @CheckForNull Object mutex) { if (collection instanceof SortedSet) { return sortedSet((SortedSet<E>) collection, mutex); } if (collection instanceof Set) { return set((Set<E>) collection, mutex); } if (collection instanceof List) {
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 57.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
/** * Adds all elements in {@code iterator} to {@code collection}. The iterator will be left * exhausted: its {@code hasNext()} method will return {@code false}. * * @return {@code true} if {@code collection} was modified as a result of this operation */ @CanIgnoreReturnValue public static <T extends @Nullable Object> boolean addAll( Collection<T> addTo, Iterator<? extends T> iterator) { checkNotNull(addTo);
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 50.3K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
import javax.inject.Named; import javax.inject.Singleton; import java.io.File; import java.io.IOException; import java.lang.reflect.Field; import java.nio.file.Path; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional;
Registered: 2024-11-03 03:35 - Last Modified: 2024-10-25 12:31 - 83.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
Iterable<? extends ListenableFuture<? extends T>> futures) { final Collection<ListenableFuture<? extends T>> collection; if (futures instanceof Collection) { collection = (Collection<ListenableFuture<? extends T>>) futures; } else { collection = ImmutableList.copyOf(futures); } return (ListenableFuture<? extends T>[]) collection.toArray(new ListenableFuture<?>[0]); }
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-25 13:13 - 64.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
/** * A {@link NavigableMap} whose contents will never change, with many other important properties * detailed at {@link ImmutableCollection}. * * <p><b>Warning:</b> as with any sorted collection, you are strongly advised not to use a {@link * Comparator} or {@link Comparable} type whose comparison behavior is <i>inconsistent with
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 50.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Futures.java
Iterable<? extends ListenableFuture<? extends T>> futures) { final Collection<ListenableFuture<? extends T>> collection; if (futures instanceof Collection) { collection = (Collection<ListenableFuture<? extends T>>) futures; } else { collection = ImmutableList.copyOf(futures); } return (ListenableFuture<? extends T>[]) collection.toArray(new ListenableFuture<?>[0]); }
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-25 13:13 - 64.4K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
problems); } } private void validateUniqueRepositoryIds( boolean isPluginRepository, Collection<Repository> pomRepositories, Collection<Repository> externalRepositories, String externalRepositoriesSource, ModelProblemCollector problems) { for (Repository externalRepository : externalRepositories) {
Registered: 2024-11-03 03:35 - Last Modified: 2024-10-25 12:31 - 77.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import static java.util.Collections.emptyList; import static java.util.Collections.emptySet; import static java.util.Collections.singleton; import static java.util.Collections.singletonList; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible;
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 54.1K bytes - Viewed (0)