Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 1,240 for builders (0.07 seconds)

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

        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        builder.addCopies("a", 2);
        builder.add("b");
        builder.add("c");
        builder.setCount("b", 0);
        ImmutableMultiset<String> multiset = builder.build();
        assertThat(multiset.elementSet()).containsExactly("a", "c").inOrder();
        builder.add("b");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

          ImmutableList.Builder<String> builder = ImmutableList.builder();
          assertThrows(NullPointerException.class, () -> builder.addAll((Iterable<String>) null));
        }
    
        {
          ImmutableList.Builder<String> builder = ImmutableList.builder();
          assertThrows(NullPointerException.class, () -> builder.addAll((Iterator<String>) null));
        }
    
        {
          ImmutableList.Builder<String> builder = ImmutableList.builder();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Derived suite generators, split out of the suite builders so that they are available to GWT.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    @NullMarked
    public final class DerivedCollectionGenerators {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableCollection.java

          }
          return newCapacity;
        }
    
        Builder() {}
    
        /**
         * Adds {@code element} to the {@code ImmutableCollection} being built.
         *
         * <p>Note that each builder class covariantly returns its own type from this method.
         *
         * @param element the element to add
         * @return this {@code Builder} instance
         * @throws NullPointerException if {@code element} is null
         */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(ImmutableList.of(1, 2, 3), ImmutableList.copyOf(list.toArray(new Integer[0])));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      @AndroidIncompatible // test-suite builders
      public static class BuiltTests extends TestCase {
        public static Test suite() {
          TestSuite suite = new TestSuite();
    
          suite.addTest(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListTest.java

          ImmutableList.Builder<String> builder = ImmutableList.builder();
          assertThrows(NullPointerException.class, () -> builder.addAll((Iterable<String>) null));
        }
    
        {
          ImmutableList.Builder<String> builder = ImmutableList.builder();
          assertThrows(NullPointerException.class, () -> builder.addAll((Iterator<String>) null));
        }
    
        {
          ImmutableList.Builder<String> builder = ImmutableList.builder();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 23.6K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

    /**
     * Run collection tests on wrappers from {@link Multimaps}.
     *
     * @author Jared Levy
     */
    @GwtIncompatible // suite // TODO(cpovirk): set up collect/gwt/suites version
    @NullUnmarked
    @AndroidIncompatible // test-suite builders
    public class MultimapsCollectionTest extends TestCase {
    
      private static final Feature<?>[] FOR_MAP_FEATURES_ONE = {
        CollectionSize.ONE,
        ALLOWS_NULL_VALUES,
        SUPPORTS_REMOVE,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

      private static final int MAX_BOUND = 1;
    
      static {
        ImmutableList.Builder<Range<Integer>> builder = ImmutableList.builder();
    
        builder.add(Range.<Integer>all());
    
        // Add one-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType type : BoundType.values()) {
            builder.add(Range.upTo(i, type));
            builder.add(Range.downTo(i, type));
          }
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 30.1K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Test suites for wrappers in {@code Maps}.
     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    @AndroidIncompatible // test-suite builders
    public class MapsCollectionTest extends TestCase {
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTest(
            NavigableMapTestSuiteBuilder.using(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 32.4K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

    /**
     * Run collection tests on wrappers from {@link Multimaps}.
     *
     * @author Jared Levy
     */
    @GwtIncompatible // suite // TODO(cpovirk): set up collect/gwt/suites version
    @NullUnmarked
    @AndroidIncompatible // test-suite builders
    public class MultimapsCollectionTest extends TestCase {
    
      private static final Feature<?>[] FOR_MAP_FEATURES_ONE = {
        CollectionSize.ONE,
        ALLOWS_NULL_VALUES,
        SUPPORTS_REMOVE,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.6K bytes
    - Click Count (0)
Back to Top