Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 217 for Supplier (0.03 sec)

  1. 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
    public interface Supplier<T extends @Nullable Object> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jun 19 17:20:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Supplier.java

     * java.util.function.Supplier} in a context where a {@code com.google.common.base.Supplier} is
     * needed, use {@code supplier::get}.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/FunctionalExplained">the use of {@code Function}</a>.
     *
     * @author Harry Heymann
     * @since 2.0
     */
    @GwtCompatible
    @FunctionalInterface
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jun 19 17:20:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

              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);
        }
    
        @Override
        @ParametricNullness
        public T get() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Suppliers.java

              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);
        }
    
        @Override
        @ParametricNullness
        public T get() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

         * @param key the key name
         * @param supplier the value supplier
         * @return the updated buffer
         */
        protected StringBuilder append(final StringBuilder buf, final String key, final Supplier<Object> supplier) {
            final StringBuilder tempBuf = new StringBuilder();
            tempBuf.append('"').append(key).append("\":");
            try {
                final Object value = supplier.get();
                if (value == null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java

        @Nullable Object get() throws Throwable;
      }
    
      @CanIgnoreReturnValue
      static <T extends Throwable> T assertThrows(
          Class<T> expectedThrowable, ThrowingSupplier supplier) {
        return doAssertThrows(expectedThrowable, supplier, /* userPassedSupplier= */ true);
      }
    
      @CanIgnoreReturnValue
      static <T extends Throwable> T assertThrows(
          Class<T> expectedThrowable, ThrowingRunnable runnable) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/ldap/LdapManager.java

         *
         * @param user the user object with new attribute values
         * @param adminEnv the supplier for admin environment
         * @param userDN the DN of the user entry
         * @param result the search results containing current attributes
         */
        protected void modifyUserAttributes(final User user, final Supplier<Hashtable<String, String>> adminEnv, final String userDN,
                final List<SearchResult> result) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

            StringBuilder buf = new StringBuilder();
            Supplier<Object> supplier = () -> null;
    
            monitorTarget.append(buf, "testKey", supplier);
            assertEquals("\"testKey\":null", buf.toString());
        }
    
        // Test append method with Integer value
        public void test_append_integerValue() {
            StringBuilder buf = new StringBuilder();
            Supplier<Object> supplier = () -> Integer.valueOf(123);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LongAddables.java

    import com.google.common.base.Supplier;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * Source of {@link LongAddable} objects that deals with GWT, Unsafe, and all that.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class LongAddables {
      private static final Supplier<LongAddable> SUPPLIER;
    
      static {
        Supplier<LongAddable> supplier;
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/logic/AccessContextLogic.java

        /**
         * Create the access context.
         * @param resource The access context resource.
         * @param userTypeSupplier The supplier of user type.
         * @param userBeanSupplier The supplier of user bean.
         * @param appTypeSupplier The supplier of application type.
         * @return The access context.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top