Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 276 for ImmutableList (0.06 sec)

  1. android/guava/src/com/google/common/graph/SuccessorsFunction.java

     * return an {@code Iterable<? extends N>}, then you can use a lambda to perform a more general
     * transformation:
     *
     * {@snippet :
     * someGraphAlgorithm(startNode, node -> ImmutableList.of(node.leftChild(), node.rightChild()));
     * }
     *
     * <p>Graph algorithms that need additional capabilities (accessing both predecessors and
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/TestLogHandler.java

       * getOnlyRecordLogged(), getAndClearLogRecords()...)
       *
       * TODO(cpovirk): consider renaming this method to reflect that it takes a snapshot (and/or return
       * an ImmutableList)
       */
      public List<LogRecord> getStoredLogRecords() {
        synchronized (lock) {
          List<LogRecord> result = new ArrayList<>(list);
          return Collections.unmodifiableList(result);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

            Gender gender,
            Integer integer,
            int i,
            String string,
            CharSequence charSequence,
            List<String> list,
            ImmutableList<Integer> immutableList,
            Map<String, Integer> map,
            ImmutableMap<String, String> immutableMap,
            Set<String> set,
            ImmutableSet<Integer> immutableSet,
            SortedSet<Number> sortedSet,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

    import static java.util.Collections.emptySet;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.BoundType;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.testing.AbstractTester;
    import com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        addEdge(5, 6, "baz");
    
        int threadCount = 20;
        ExecutorService executor = newFixedThreadPool(threadCount);
        CyclicBarrier barrier = new CyclicBarrier(threadCount);
        ImmutableList.Builder<Future<?>> futures = ImmutableList.builder();
        for (int i = 0; i < threadCount; i++) {
          futures.add(
              executor.submit(
                  new Callable<@Nullable Void>() {
                    @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testOr_applyIterable() {
        Predicate<@Nullable Integer> vacuouslyFalse = Predicates.or(ImmutableList.of());
        Predicate<@Nullable Integer> troo = Predicates.or(ImmutableList.of(TRUE));
        Predicate<@Nullable Integer> trueAndFalse = Predicates.or(ImmutableList.of(TRUE, FALSE));
    
        assertEvalsToFalse(vacuouslyFalse);
        assertEvalsToTrue(troo);
        assertEvalsToTrue(trueAndFalse);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MoreCollectors.java

      }
    
      /**
       * This atrocity is here to let us report several of the elements in the stream if there were more
       * than one, not just two.
       */
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      private static final class ToOptionalState {
        static final int MAX_EXTRAS = 4;
    
        @Nullable Object element;
        List<Object> extras;
    
        ToOptionalState() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

     */
    
    package com.google.common.eventbus;
    
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.CopyOnWriteArrayList;
    import java.util.concurrent.ExecutorService;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableTable.java

            return of();
          }
          if (cellValues.length == 1) {
            return of(rowKeys[0], columnKeys[0], cellValues[0]);
          }
          ImmutableList.Builder<Cell<Object, Object, Object>> cellListBuilder =
              new ImmutableList.Builder<>(cellValues.length);
          for (int i = 0; i < cellValues.length; i++) {
            cellListBuilder.add(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

    @GwtCompatible
    @NullMarked
    public class AbstractSequentialIteratorTest extends TestCase {
      @GwtIncompatible // Too slow
      public void testDoublerExhaustive() {
        new IteratorTester<Integer>(
            3, UNMODIFIABLE, ImmutableList.of(1, 2), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return newDoubler(1, 2);
          }
        }.test();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top