Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for carlet (0.19 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * href="ImmutableMultimap.html#iteration">grouped by key</a>.
       *
       * <p>Example:
       *
       * <pre>{@code
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(toImmutableSetMultimap(str -> str.charAt(0), str -> str.substring(1)));
       *
       * // is equivalent to
       *
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        final boolean[] called = new boolean[1];
        f.addCallback(
            new FutureCallback<String>() {
              @Override
              public void onSuccess(String result) {
                called[0] = true;
              }
    
              @Override
              public void onFailure(Throwable t) {}
            },
            directExecutor());
        assertThat(called[0]).isTrue();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

       * and then applying {@code function} to that value. Note that the resulting supplier will not
       * call {@code supplier} or invoke {@code function} until it is called.
       */
      public static <F extends @Nullable Object, T extends @Nullable Object> Supplier<T> compose(
          Function<? super F, T> function, Supplier<F> supplier) {
        return new SupplierComposition<>(function, supplier);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * LocalCache emulation for GWT.
     *
     * @param <K> the base key type
     * @param <V> the base value type
     * @author Charles Fry
     * @author Jon Donovan
     */
    public class LocalCache<K, V> implements ConcurrentMap<K, V> {
      private static final int UNSET_INT = CacheBuilder.UNSET_INT;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       *       underlying contents.
       *   <li>All methods that return objects that can indirectly mutate the collection throw
       *       UnsupportedOperationException when those mutators are called.
       * </ol>
       *
       * @param collection the presumed-immutable collection
       * @param sampleElement an element of the same type as that contained by {@code collection}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertEquals(4, list.lastIndexOf("b"));
      }
    
      public void testCopyOfDefensiveCopy() {
        // Depending on JDK version, either toArray() or toArray(T[]) may be called... use this class
        // rather than mocking to ensure that one of those methods is called.
        class TestArrayList<E> extends ArrayList<E> {
          boolean toArrayCalled = false;
    
          @Override
          public Object[] toArray() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

              internalExecuteAndCompare(reference, target, NEXT_METHOD);
            }
          };
      Stimulus<E, Iterator<E>> remove =
          new Stimulus<E, Iterator<E>>("remove") {
            @Override
            void executeAndCompare(ListIterator<E> reference, Iterator<E> target) {
              internalExecuteAndCompare(reference, target, REMOVE_METHOD);
            }
          };
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterables.java

        // * Everything with (index > from) has not been checked yet.
    
        // Check from the end of the list backwards (minimize expected cost of
        // moving elements when remove() is called). Stop before 'from' because
        // we already know that should be kept.
        for (int n = list.size() - 1; n > from; n--) {
          if (predicate.apply(list.get(n))) {
            list.remove(n);
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multisets.java

       * doesn't satisfy the predicate, the multiset's {@code add()} and {@code addAll()} methods throw
       * an {@link IllegalArgumentException}. When methods such as {@code removeAll()} and {@code
       * clear()} are called on the filtered multiset, only elements that satisfy the filter will be
       * removed from the underlying multiset.
       *
       * <p>The returned multiset isn't threadsafe or serializable, even if {@code unfiltered} is.
       *
    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)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

              "removeIf(Predicate) should return false or throw " + "UnsupportedOperationException",
              collection.removeIf(
                  x -> {
                    throw new AssertionError("predicate should never be called");
                  }));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top