Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for collections (0.36 sec)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testToArrayEmpty() {
        Iterator<String> iterator = Collections.<String>emptyList().iterator();
        String[] array = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(new String[0], array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArraySingleton() {
        Iterator<String> iterator = Collections.singletonList("a").iterator();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multimaps.java

          Collection<V> collection) {
        if (collection instanceof SortedSet) {
          return Collections.unmodifiableSortedSet((SortedSet<V>) collection);
        } else if (collection instanceof Set) {
          return Collections.unmodifiableSet((Set<V>) collection);
        } else if (collection instanceof List) {
          return Collections.unmodifiableList((List<V>) collection);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  3. 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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. .teamcity/test-buckets.json

    					"code-quality",
    					"signing",
    					"ide-native",
    					"plugins-java-library",
    					"antlr",
    					"ide-plugins",
    					"platform-base",
    					"test-kit",
    					"ide",
    					"file-collections",
    					"persistent-cache"
    				]
    			},
    			{
    				"parallelizationMethod":{
    					"name":"TestDistribution"
    				},
    				"subprojects":[
    					"kotlin-dsl-tooling-builders",
    Json
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed May 01 00:36:47 GMT 2024
    - 50.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableMap<String, Integer> copy =
            ImmutableMap.copyOf(Collections.<String, Integer>emptyMap());
        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableMap.copyOf(copy));
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableMap<String, Integer> copy = ImmutableMap.copyOf(Collections.singletonMap("one", 1));
        assertMapEquals(copy, "one", 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) {
        int size = remaining.length + 6;
        List<E> all = Lists.newArrayListWithCapacity(size);
        Collections.addAll(all, e1, e2, e3, e4, e5, e6);
        Collections.addAll(all, remaining);
        return copyOf(Ordering.natural(), all);
      }
    
      /**
       * Returns an immutable sorted multiset containing the given elements sorted by their natural
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MoreCollectors.java

    import java.util.stream.Collector;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Collectors not present in {@code java.util.stream.Collectors} that are not otherwise associated
     * with a {@code com.google.common} type.
     *
     * @author Louis Wasserman
     * @since 33.2.0 (available since 21.0 in guava-jre)
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

      }
    
      /**
       * Adapts an {@code Iterator} to the {@code Enumeration} interface.
       *
       * <p>The {@code Iterable} equivalent of this method is either {@link Collections#enumeration} (if
       * you have a {@link Collection}), or {@code Iterators.asEnumeration(collection.iterator())}.
       */
      public static <T extends @Nullable Object> Enumeration<T> asEnumeration(Iterator<T> iterator) {
        checkNotNull(iterator);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

    import java.io.InvalidObjectException;
    import java.io.ObjectInputStream;
    import java.io.Serializable;
    import java.util.AbstractMap;
    import java.util.Arrays;
    import java.util.BitSet;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import java.util.SortedMap;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Comparators.java

       * For example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1,
       * 1] < [1, 2] < [2]}.
       *
       * <p>Note that {@code Collections.reverseOrder(lexicographical(comparator))} is not equivalent to
       * {@code lexicographical(Collections.reverseOrder(comparator))} (consider how each would order
       * {@code [1]} and {@code [1, 1]}).
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top