Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,613 for collections (0.11 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java

        final OneSizeTestContainerGenerator<Collection<E>, E> gen;
    
        private ReserializedCollectionGenerator(OneSizeTestContainerGenerator<Collection<E>, E> gen) {
          this.gen = gen;
        }
    
        @Override
        public SampleElements<E> samples() {
          return gen.samples();
        }
    
        @Override
        public Collection<E> create(Object... elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 18 22:49:45 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

            return inEdgeMap.containsKey(obj) || outEdgeMap.containsKey(obj);
          }
        };
      }
    
      @Override
      public Set<E> inEdges() {
        return Collections.unmodifiableSet(inEdgeMap.keySet());
      }
    
      @Override
      public Set<E> outEdges() {
        return Collections.unmodifiableSet(outEdgeMap.keySet());
      }
    
      @Override
      public N adjacentNode(E edge) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

          return unmodifiableNavigableSet((NavigableSet<E>) collection);
        } else {
          return unmodifiableSortedSet((SortedSet<E>) collection);
        }
      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        if (collection instanceof NavigableSet) {
          return new WrappedNavigableSet(key, (NavigableSet<V>) collection, null);
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

    import com.google.common.collect.testing.features.Feature;
    import com.google.common.collect.testing.testers.NavigableSetNavigationTester;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedSet;
    import junit.framework.TestSuite;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

    import static com.google.common.graph.GraphConstants.EXPECTED_DEGREE;
    
    import com.google.common.collect.BiMap;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.ImmutableBiMap;
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    
    /**
     * An implementation of {@link NetworkConnections} for undirected networks.
     *
     * @author James Sexton
     * @param <N> Node parameter type
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.testing.SerializableTester;
    import java.io.Serializable;
    import java.lang.reflect.Method;
    import java.util.Collections;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for the {@code inverse} view of a BiMap.
     *
     * <p>This assumes that {@code bimap.inverse().inverse() == bimap}, which is not technically
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

    import static com.google.common.graph.GraphConstants.INNER_LOAD_FACTOR;
    
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.Iterators;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Chars.java

       *     to primitives
       * @throws NullPointerException if {@code collection} or any of its elements is null
       */
      public static char[] toArray(Collection<Character> collection) {
        if (collection instanceof CharArrayAsList) {
          return ((CharArrayAsList) collection).toCharArray();
        }
    
        Object[] boxedArray = collection.toArray();
        int len = boxedArray.length;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableList.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Collections.singletonList;
    
    import java.util.List;
    
    /**
     * GWT emulated version of {@link SingletonImmutableList}.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.java

    @ElementTypesAreNonnullByDefault
    public class RegularImmutableAsListTest extends TestCase {
      /**
       * RegularImmutableAsList should assume its input is null-free without checking, because it only
       * gets invoked from other immutable collections.
       */
      public void testDoesntCheckForNull() {
        ImmutableSet<Integer> set = ImmutableSet.of(1, 2, 3);
        ImmutableList<Integer> unused =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top