Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for supplierFunction (0.08 sec)

  1. android/guava/src/com/google/common/base/Suppliers.java

        @SuppressWarnings("unchecked") // implementation is "fully variant"
        SupplierFunction<T> sf = (SupplierFunction<T>) SupplierFunctionImpl.INSTANCE;
        return sf;
      }
    
      private interface SupplierFunction<T extends @Nullable Object> extends Function<Supplier<T>, T> {}
    
      private enum SupplierFunctionImpl implements SupplierFunction<@Nullable Object> {
        INSTANCE;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testSupplierFunction() {
        Supplier<Integer> supplier = Suppliers.ofInstance(14);
        Function<Supplier<Integer>, Integer> supplierFunction = Suppliers.supplierFunction();
    
        assertEquals(14, (int) supplierFunction.apply(supplier));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializationTester
      @SuppressWarnings("DoNotCall")
      public void testSerialization() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Functions.java

          Supplier<T> supplier) {
        return new SupplierFunction<>(supplier);
      }
    
      /**
       * @see Functions#forSupplier
       */
      private static final class SupplierFunction<
              F extends @Nullable Object, T extends @Nullable Object>
          implements Function<F, T>, Serializable {
    
        private final Supplier<T> supplier;
    
        private SupplierFunction(Supplier<T> supplier) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Suppliers.java

        @SuppressWarnings("unchecked") // implementation is "fully variant"
        SupplierFunction<T> sf = (SupplierFunction<T>) SupplierFunctionImpl.INSTANCE;
        return sf;
      }
    
      private interface SupplierFunction<T extends @Nullable Object> extends Function<Supplier<T>, T> {}
    
      private enum SupplierFunctionImpl implements SupplierFunction<@Nullable Object> {
        INSTANCE;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
Back to top