Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for apply (0.17 sec)

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

        return Collector.of(
            (Supplier<ImmutableTable.Builder<R, C, V>>) ImmutableTable.Builder::new,
            (builder, t) ->
                builder.put(rowFunction.apply(t), columnFunction.apply(t), valueFunction.apply(t)),
            ImmutableTable.Builder::combine,
            ImmutableTable.Builder::build);
      }
    
      static <T extends @Nullable Object, R, C, V>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/EquivalenceTest.java

        assertTrue(equalTo1.apply("1"));
        assertFalse(equalTo1.apply("2"));
        assertFalse(equalTo1.apply(null));
        Predicate<@Nullable Object> isNull = Equivalence.equals().equivalentTo(null);
        assertFalse(isNull.apply("1"));
        assertFalse(isNull.apply("2"));
        assertTrue(isNull.apply(null));
    
        new EqualsTester()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Predicate.java

       *       Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) ==
       *       predicate.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this predicate does not accept null
       *     arguments
       */
      boolean apply(@ParametricNullness T input);
    
      /**
       * Indicates whether another object is equal to this predicate.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

                .catching(
                    Throwable.class,
                    new Function<Throwable, Class<?>>() {
                      @Override
                      public Class<?> apply(Throwable input) {
                        return input.getClass();
                      }
                    },
                    directExecutor());
        assertThat(f.get()).isEqualTo(CustomRuntimeException.class);
      }
    
    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)
  5. guava/src/com/google/common/cache/ForwardingLoadingCache.java

      @Override
      public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        return delegate().getAll(keys);
      }
    
      @Override
      public V apply(K key) {
        return delegate().apply(key);
      }
    
      @Override
      public void refresh(K key) {
        delegate().refresh(key);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.9K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/base/Predicate.java

       *       Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) ==
       *       predicate.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this predicate does not accept null
       *     arguments
       */
      boolean apply(@ParametricNullness T input);
    
      /**
       * Indicates whether another object is equal to this predicate.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/CollectorTester.java

            for (T input : inputs) {
              A newAccum = collector.supplier().get();
              collector.accumulator().accept(newAccum, input);
              accum = collector.combiner().apply(accum, newAccum);
            }
            return accum;
          }
        },
        /** Get one accumulator for each element and merge the accumulators right-to-left. */
        MERGE_RIGHT_ASSOCIATIVE {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

    public class FilteredMultimapTest extends TestCase {
    
      private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE =
          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
              return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue());
            }
          };
    
      protected Multimap<String, Integer> create() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/UrlEscapers.java

       * with a CR+LF pair</a> on any non-file inputs before escaping them with this escaper.
       *
       * <p>When escaping a String, the following rules apply:
       *
       * <ul>
       *   <li>The alphanumeric characters "a" through "z", "A" through "Z" and "0" through "9" remain
       *       the same.
       *   <li>The special characters ".", "-", "*", and "_" remain the same.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

            @Override
            public Optional<?> apply(@Nullable Object obj) {
              return Optional.fromNullable(obj);
            }
          };
    
      private static final Function<Optional<?>, @Nullable Object> OPTIONAL_TO_NULLABLE =
          new Function<Optional<?>, @Nullable Object>() {
            @Override
            public @Nullable Object apply(Optional<?> optional) {
              return optional.orNull();
            }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top