Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 276 for ImmutableList (0.05 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        SMALL(Timeout.SMALL),
        FINITE(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO, Timeout.SMALL),
        INFINITE(Timeout.LARGE, Timeout.MAX);
    
        final ImmutableList<Timeout> timeouts;
    
        TimeoutsToUse(Timeout... timeouts) {
          this.timeouts = ImmutableList.copyOf(timeouts);
        }
      }
    
      /** Possible outcomes of calling any of the methods under test. */
      private enum Outcome {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/Collections2Test.java

                  public Collection<String> create(String[] elements) {
                    List<String> unfiltered = new ArrayList<>();
                    unfiltered.add("yyy");
                    unfiltered.addAll(ImmutableList.copyOf(elements));
                    unfiltered.add("zzz");
                    return Collections2.filter(unfiltered, LENGTH_1);
                  }
                })
            .named("Collections2.filter, no nulls")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

        @LazyInit @RetainedWith private transient @Nullable ImmutableList<E> asList;
    
        @Override
        public ImmutableList<E> asList() {
          ImmutableList<E> result = asList;
          if (result == null) {
            return asList = createAsList();
          } else {
            return result;
          }
        }
    
        ImmutableList<E> createAsList() {
          return new RegularImmutableAsList<>(this, toArray());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        }
      }
    
      public void testByteArrayHashtable() {
        hashtableTestHelper(ImmutableList.of(2, 89));
      }
    
      public void testShortArrayHashtable() {
        hashtableTestHelper(ImmutableList.of(90, 22937));
      }
    
      public void testIntArrayHashtable() {
        hashtableTestHelper(ImmutableList.of(22938));
      }
    
      // Non-creation tests
    
      public void testNullGet() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       * <p>Only for use by a {@link CombiningCallable} or {@link AsyncCombiningCallable} object.
       */
      public static final class Peeker {
        private final ImmutableList<ClosingFuture<?>> futures;
        private volatile boolean beingCalled;
    
        private Peeker(ImmutableList<ClosingFuture<?>> futures) {
          this.futures = checkNotNull(futures);
        }
    
        /**
         * Returns the value of {@code closingFuture}.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CloserTest.java

    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import java.io.Closeable;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Objects;
    import junit.framework.TestCase;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

                        ImmutableList.Builder<String> builder = ImmutableList.builder();
                        for (int i = elements.length - 1; i >= 0; i--) {
                          builder.add(elements[i]);
                        }
                        return Lists.reverse(builder.build());
                      }
                    })
                .named("Lists.reverse[ImmutableList]")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractListMultimap.java

       */
      protected AbstractListMultimap(Map<K, Collection<V>> map) {
        super(map);
      }
    
      @Override
      abstract List<V> createCollection();
    
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      @Override
      List<V> createUnmodifiableEmptyCollection() {
        return emptyList();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/PredecessorsFunction.java

     * return a {@code Iterable<? extends N>}, then you can use a lambda to perform a more general
     * transformation:
     *
     * {@snippet :
     * someGraphAlgorithm(startNode, node -> ImmutableList.of(node.mother(), node.father()));
     * }
     *
     * <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
    - 4K bytes
    - Viewed (0)
Back to top