Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 592 for Lists (0.03 sec)

  1. guava/src/com/google/common/collect/Lists.java

       * list of size {@code m x n x p}, its actual memory consumption is much smaller. When the
       * cartesian product is constructed, the input lists are merely copied. Only as the resulting list
       * is iterated are the individual lists created, and these are not retained after iteration.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

        assertThrows(
            NullPointerException.class, () -> multimap().putAll(k3(), Lists.newArrayList(v3(), null)));
    
        Collection<V> values = multimap().get(k3());
        if (values.size() == 0) {
          expectUnchanged();
          // Be extra thorough in case internal state was corrupted by the expected null.
          assertEquals(Lists.newArrayList(), Lists.newArrayList(values));
          assertEquals(size, multimap().size());
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingList.java

        return Lists.equalsImpl(this, object);
      }
    
      /**
       * A sensible definition of {@link #hashCode} in terms of {@link #iterator}. If you override
       * {@link #iterator}, you may wish to override {@link #hashCode} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected int standardHashCode() {
        return Lists.hashCodeImpl(this);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          List<String> list = Lists.newArrayList(elements);
          list.add("zzz");
          return ImmutableSortedSet.copyOf(list).headSet("zzy");
        }
      }
    
      public static class ImmutableSortedSetTailsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
          List<String> list = Lists.newArrayList(elements);
          list.add("\0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

    import static com.google.common.collect.Lists.cartesianProduct;
    import static com.google.common.collect.Lists.charactersOf;
    import static com.google.common.collect.Lists.computeArrayListCapacity;
    import static com.google.common.collect.Lists.newArrayListWithExpectedSize;
    import static com.google.common.collect.Lists.partition;
    import static com.google.common.collect.Lists.transform;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ListsTest.java

    import static com.google.common.collect.Lists.cartesianProduct;
    import static com.google.common.collect.Lists.charactersOf;
    import static com.google.common.collect.Lists.computeArrayListCapacity;
    import static com.google.common.collect.Lists.newArrayListWithExpectedSize;
    import static com.google.common.collect.Lists.partition;
    import static com.google.common.collect.Lists.transform;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

        final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList();
        final List<Object> differentlyOverriddenNotAnnotatedInSubclassBadEvents = Lists.newArrayList();
        final List<Object> differentlyOverriddenAnnotatedInSubclassBadEvents = Lists.newArrayList();
    
        @Subscribe
        public void notOverriddenInSubclass(Object o) {
          notOverriddenInSubclassEvents.add(o);
        }
    
        @Subscribe
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 08 21:35:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals(
            Lists.newArrayList("c", "d", "e"), Lists.newArrayList(FluentIterable.from(set).skip(2)));
        assertEquals("[c, d, e]", FluentIterable.from(set).skip(2).toString());
      }
    
      public void testSkip_simpleList() {
        Collection<String> list = Lists.newArrayList("a", "b", "c", "d", "e");
        assertEquals(
            Lists.newArrayList("c", "d", "e"), Lists.newArrayList(FluentIterable.from(list).skip(2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int copyArrayList(int reps) {
        int size = this.size;
        int dummy = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayList();
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += ImmutableList.copyOf(builder).size();
        }
        return dummy;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int copyArrayList(int reps) {
        int size = this.size;
        int dummy = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayList();
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += ImmutableList.copyOf(builder).size();
        }
        return dummy;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
Back to top