Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 1,740 for collection (0.06 sec)

  1. guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java

      }
    
      @Override
      public <T extends @Nullable Object> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks) throws InterruptedException {
        return delegate().invokeAll(tasks);
      }
    
      @Override
      public <T extends @Nullable Object> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
          throws InterruptedException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputLocation.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.model;
    
    import java.io.Serializable;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.LinkedHashMap;
    import java.util.Map;
    
    /**
     * Class InputLocation.
     */
    public class InputLocation implements Serializable, InputLocationTracker {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 15 13:24:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. 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)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testIn_apply() {
        Collection<Integer> nums = Arrays.asList(1, 5);
        Predicate<@Nullable Integer> isOneOrFive = Predicates.in(nums);
    
        assertTrue(isOneOrFive.apply(1));
        assertTrue(isOneOrFive.apply(5));
        assertFalse(isOneOrFive.apply(3));
        assertFalse(isOneOrFive.apply(null));
      }
    
      public void testIn_equality() {
        Collection<Integer> nums = ImmutableSet.of(1, 5);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  7. 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.checkerframework.checker.nullness.qual.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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/HashMultimap.java

        super(Platform.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys));
        Preconditions.checkArgument(expectedValuesPerKey >= 0);
        this.expectedValuesPerKey = expectedValuesPerKey;
      }
    
      private HashMultimap(Multimap<? extends K, ? extends V> multimap) {
        super(Platform.<K, Collection<V>>newHashMapWithExpectedSize(multimap.keySet().size()));
        putAll(multimap);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 10:02:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

       * they are returned by the iterable's iterator.
       *
       * @since 12.0
       */
      public static <E> ArrayDeque<E> newArrayDeque(Iterable<? extends E> elements) {
        if (elements instanceof Collection) {
          return new ArrayDeque<>((Collection<? extends E>) elements);
        }
        ArrayDeque<E> deque = new ArrayDeque<>();
        Iterables.addAll(deque, elements);
        return deque;
      }
    
      // ConcurrentLinkedQueue
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/TestCollectionGenerator.java

    import java.util.Collection;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Creates collections, containing sample elements, to be tested.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface TestCollectionGenerator<E extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top