Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for supplied (0.2 sec)

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

      public FakeTicker advance(Duration duration) {
        return advance(duration.toNanos());
      }
    
      /**
       * Sets the increment applied to the ticker whenever it is queried.
       *
       * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
       * queried.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

       * will be added more than once, with the count summed over all appearances of the element.
       *
       * <p>Note that {@code stream.collect(toMultiset(function, e -> 1, supplier))} is equivalent to
       * {@code stream.map(function).collect(Collectors.toCollection(supplier))}.
       *
       * <p>To collect to an {@link ImmutableMultiset}, use {@link
       * ImmutableMultiset#toImmutableMultiset}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static <A extends @Nullable Object> void genericTestToImmutableEnumSetReused(
          Collector<SomeEnum, A, ImmutableSet<SomeEnum>> collector) {
        A accumulator = collector.supplier().get();
        BiConsumer<A, SomeEnum> adder = collector.accumulator();
        adder.accept(accumulator, SomeEnum.A);
        adder.accept(accumulator, SomeEnum.B);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ArrayListMultimap.java

     * Implementation of {@code Multimap} that uses an {@code ArrayList} to store the values for a given
     * key. A {@link HashMap} associates each key with an {@link ArrayList} of values.
     *
     * <p>When iterating through the collections supplied by this class, the ordering of values for a
     * given key agrees with the order in which the values were added.
     *
     * <p>This multimap allows duplicate key-value pairs. After adding a new key-value pair equal to an
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/NewCustomTableTest.java

    @ElementTypesAreNonnullByDefault
    public class NewCustomTableTest extends AbstractTableTest<Character> {
    
      @Override
      protected Table<String, Integer, Character> create(@Nullable Object... data) {
        Supplier<TreeMap<Integer, Character>> factory =
            new Supplier<TreeMap<Integer, Character>>() {
              @Override
              public TreeMap<Integer, Character> get() {
                return Maps.newTreeMap();
              }
            };
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

          }
    
          @Override
          public void remove() {
            iterator.remove();
          }
        };
      }
    
      /**
       * Returns a view of the supplied {@code iterator} that removes each element from the supplied
       * {@code iterator} as it is returned.
       *
       * <p>The provided iterator must support {@link Iterator#remove()} or else the returned iterator
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

       *
       * <p>The returned map is not thread-safe or serializable, even if the underlying map is.
       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned map
       * to be a view, but it means that the function will be applied many times for bulk operations
       * like {@link Map#containsValue} and {@code Map.toString()}. For this to perform well, {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultimapsTest.java

        Supplier<TreeSet<Integer>> factory = new SortedSetSupplier();
        Map<Color, Collection<Integer>> map = Maps.newEnumMap(Color.class);
        Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory);
        assertTrue(multimap.get(Color.BLUE) instanceof NavigableSet);
      }
    
      public void testNewMultimapValueCollectionMatchesList() {
        Supplier<LinkedList<Integer>> factory = new ListSupplier();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

              java.util.function.Supplier<M> multimapSupplier) {
        return CollectCollectors.<T, K, V, M>toMultimap(keyFunction, valueFunction, multimapSupplier);
      }
    
      /**
       * Returns a {@code Collector} accumulating entries into a {@code Multimap} generated from the
       * specified supplier. Each input element is mapped to a key and a stream of values, each of which
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          // fail(), but with the JUnit-supplied message.
          assertEquals("Using seed " + seed, expected, actual);
        }
      }
    
      private static void assertEqualsUsingStartedWith(
          Collection<?> startedWith, @Nullable Object expected, @Nullable Object actual) {
        if (!equal(actual, expected)) {
          // fail(), but with the JUnit-supplied message.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top