Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 341 for supplier (0.4 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/OptionalTest.java

        assertThat(Optional.of("a").or(Suppliers.ofInstance("fallback"))).isEqualTo("a");
      }
    
      public void testOr_supplier_absent() {
        assertEquals("fallback", Optional.absent().or(Suppliers.ofInstance("fallback")));
      }
    
      public void testOr_nullSupplier_absent() {
        Supplier<Object> nullSupplier = (Supplier<Object>) Suppliers.<@Nullable Object>ofInstance(null);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/Present.java

      }
    
      @Override
      public Optional<T> or(Optional<? extends T> secondChoice) {
        checkNotNull(secondChoice);
        return this;
      }
    
      @Override
      public T or(Supplier<? extends T> supplier) {
        checkNotNull(supplier);
        return reference;
      }
    
      @Override
      public T orNull() {
        return reference;
      }
    
      @Override
      public Set<T> asSet() {
        return Collections.singleton(reference);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Apr 15 22:14:00 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. 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) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 85.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

      }
    
      private static void assertChecksum(ImmutableSupplier<Checksum> supplier, String input) {
        byte[] bytes = HashTestUtils.ascii(input);
    
        Checksum checksum = supplier.get();
        checksum.update(bytes, 0, bytes.length);
        long value = checksum.getValue();
    
        String toString = "name";
        HashFunction func = new ChecksumHashFunction(supplier, 32, toString);
        assertThat(func.toString()).isEqualTo(toString);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

        static Stream<Arguments> implementations() {
            return Stream.of(Arguments.of("returns self", (Supplier<SmbRenewableCredentials>) SelfRenewingCreds::new, true, false),
                    Arguments.of("returns new", (Supplier<SmbRenewableCredentials>) NewRenewingCreds::new, false, true),
                    Arguments.of("returns null", (Supplier<SmbRenewableCredentials>) NullRenewingCreds::new, false, false));
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/io/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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                    this.beanEntry = beanEntry;
                    return this;
                }
    
                @Override
                public Supplier<T> compile(Function<Dependency<?>, Supplier<?>> compiler) {
                    return beanEntry.getProvider()::get;
                }
            }
    
            class BridgeProvider<T> implements Provider<T> {
                final Binding<T> binding;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 16:01:38 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top