Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Accept4 (0.18 sec)

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

        adder.accept(accumulator, SomeEnum.A);
        adder.accept(accumulator, SomeEnum.B);
        ImmutableSet<SomeEnum> set = collector.finisher().apply(accumulator);
        assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B);
    
        // Subsequent manual manipulation of the accumulator must not affect the state of the built set
        adder.accept(accumulator, SomeEnum.C);
    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)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      private static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> fromEntries(
          Entry<K, V>... entries) {
        return fromEntries(Ordering.natural(), false, entries, entries.length);
      }
    
      /**
       * Accepts a collection of possibly-null entries. If {@code sameComparator}, then it is assumed
       * that they do not need to be sorted or checked for dupes.
       */
      private static <K, V> ImmutableSortedMap<K, V> fromEntries(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

           * one as it is because one of our users has defined a wrapper API around Preconditions,
           * declaring a checkState method that accepts a possibly null template. So we'd need to update
           * that user first.
           */
          @CheckForNull String errorMessageTemplate,
          @CheckForNull @Nullable Object... errorMessageArgs) {
        if (!expression) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedMap.java

      private static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> fromEntries(
          Entry<K, V>... entries) {
        return fromEntries(Ordering.natural(), false, entries, entries.length);
      }
    
      /**
       * Accepts a collection of possibly-null entries. If {@code sameComparator}, then it is assumed
       * that they do not need to be sorted or checked for dupes.
       */
      private static <K, V> ImmutableSortedMap<K, V> fromEntries(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

              }
            };
        Map<String, String> transformed = transformEntries(options, flagPrefixer);
        assertEquals("{verbose=verbose, sort=nosort}", transformed.toString());
      }
    
      // Logically this would accept a NavigableMap, but that won't work under GWT.
      private static <K, V> SortedMap<K, V> sortedNotNavigable(final SortedMap<K, V> map) {
        return new ForwardingSortedMap<K, V>() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

              }
            };
        Map<String, String> transformed = transformEntries(options, flagPrefixer);
        assertEquals("{verbose=verbose, sort=nosort}", transformed.toString());
      }
    
      // Logically this would accept a NavigableMap, but that won't work under GWT.
      private static <K, V> SortedMap<K, V> sortedNotNavigable(final SortedMap<K, V> map) {
        return new ForwardingSortedMap<K, V>() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private abstract static class RawTypeConsistencyTester<T extends Enum<T> & CharSequence> {
        abstract T returningT();
    
        abstract void acceptT(T t);
    
        abstract <X extends T> X returningX();
    
        abstract <X> void acceptX(X x);
    
        abstract <T2 extends Enum<T2> & CharSequence> T2 returningT2();
    
        abstract <T2 extends CharSequence & Iterable<T2>> void acceptT2(T2 t2);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

          assertTrue(awaitUninterruptibly(returned, 10, SECONDS));
        }
      }
    
      static final class NoOpValueAndCloserConsumer<V> implements ValueAndCloserConsumer<V> {
        @Override
        public void accept(ValueAndCloser<V> valueAndCloser) {}
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

      }
    
      /**
       * Returns a new, <i>mutable</i> {@code EnumSet} instance containing the given elements in their
       * natural order. This method behaves identically to {@link EnumSet#copyOf(Collection)}, but also
       * accepts non-{@code Collection} iterables and empty iterables.
       */
      public static <E extends Enum<E>> EnumSet<E> newEnumSet(
          Iterable<E> iterable, Class<E> elementType) {
        EnumSet<E> set = EnumSet.noneOf(elementType);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

       * new stack trace matches that of the current thread.
       *
       * <p>Instances of {@code exceptionClass} are created by choosing an arbitrary public constructor
       * that accepts zero or more arguments, all of type {@code String} or {@code Throwable}
       * (preferring constructors with at least one {@code String}, then preferring constructors with at
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top