Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 299 for Supplier (0.42 sec)

  1. guava/src/com/google/common/base/Supplier.java

    /**
     * Legacy version of {@link java.util.function.Supplier java.util.function.Supplier}. Semantically,
     * this could be a factory, generator, builder, closure, or something else entirely. No guarantees
     * are implied by this interface.
     *
     * <p>The {@link Suppliers} class provides common suppliers and related utilities.
     *
     * <p>As this interface extends {@code java.util.function.Supplier}, an instance of this type can be
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Oct 20 14:12:57 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Supplier.java

     * future version of {@code com.google.common.base.Supplier} will be made to <i>extend</i> {@code
     * java.util.function.Supplier}, making conversion code necessary only in one direction. At that
     * time, this interface will be officially discouraged.
     *
     * @author Harry Heymann
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 12:15:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Suppliers.java

      }
    
      private static class SupplierComposition<F extends @Nullable Object, T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        final Function<? super F, T> function;
        final Supplier<F> supplier;
    
        SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) {
          this.function = checkNotNull(function);
          this.supplier = checkNotNull(supplier);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Suppliers.java

      }
    
      private static class SupplierComposition<F extends @Nullable Object, T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        final Function<? super F, T> function;
        final Supplier<F> supplier;
    
        SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) {
          this.function = checkNotNull(function);
          this.supplier = checkNotNull(supplier);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLambdaIntegrationTest.groovy

                        }
    
                        @TaskAction
                        void printValue() {
                            for (Supplier<String> supplier : suppliers) {
                                System.out.println("supplier -> " + supplier.get());
                            }
                        }
                    }
                """
            }
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/SupplierCodecTest.kt

    import org.junit.Test
    import java.util.function.Supplier
    
    
    class SupplierCodecTest : AbstractFunctionalTypeTest() {
    
        @Test
        fun `defers evaluation of Supplier objects`() {
            assertDeferredEvaluationOf(supplier()) {
                get()
            }
        }
    
        @Test
        fun `defers evaluation of dynamic Supplier fields`() {
            assertDeferredEvaluationOf(BeanOf(supplier())) {
                value.get()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

            public int hashCode() {
                return hash;
            }
        }
    
        static class CachingSupplier<T> implements Supplier<T> {
            final Supplier<T> supplier;
            volatile Object value;
    
            CachingSupplier(Supplier<T> supplier) {
                this.supplier = supplier;
            }
    
            @Override
            @SuppressWarnings({"unchecked", "checkstyle:InnerAssignment"})
            public T get() {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/InvalidatableSet.java

      private final Supplier<Boolean> validator;
      private final Set<E> delegate;
      private final Supplier<String> errorMessage;
    
      public static final <E> InvalidatableSet<E> of(
          Set<E> delegate, Supplier<Boolean> validator, Supplier<String> errorMessage) {
        return new InvalidatableSet<>(
            checkNotNull(delegate), checkNotNull(validator), checkNotNull(errorMessage));
      }
    
      @Override
      protected Set<E> delegate() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. maven-di/src/main/java/org/apache/maven/di/impl/Binding.java

                            .collect(Collectors.toSet()),
                    this.scope,
                    this.priority) {
                @Override
                public Supplier<T> compile(Function<Key<?>, Supplier<?>> compiler) {
                    final Supplier<T> compiledBinding = Binding.this.compile(compiler);
                    final Consumer<T> consumer = bindingInitializer.compile(compiler);
                    return () -> {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Log.java

         *
         * @param error the error that caused this log
         */
        void debug(Throwable error);
    
        void debug(Supplier<String> content);
    
        void debug(Supplier<String> content, Throwable error);
    
        /**
         * {@return true if the <b>info</b> error level is enabled}.
         */
        boolean isInfoEnabled();
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top