Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 108 for idPresent (0.05 seconds)

  1. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

            assertTrue(parser.getWebConfig().isPresent());
            assertTrue(parser.getFileConfig().isPresent());
    
            parser.getWebConfig().ifPresent(config -> {
                assertTrue(config.getUrls().contains("https://example.com"));
                assertFalse(config.getUrls().contains("file:///test"));
            });
    
            parser.getFileConfig().ifPresent(config -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/Optional.java

     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            context.invokerRequest.stdIn().ifPresent(System::setIn);
            context.invokerRequest
                    .stdOut()
                    .ifPresent(out -> System.setOut(out instanceof PrintStream pw ? pw : new PrintStream(out, true)));
            context.invokerRequest
                    .stdErr()
                    .ifPresent(err -> System.setErr(err instanceof PrintStream pw ? pw : new PrintStream(err, true)));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Optional.java

     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/JobHelper.java

                        .selectByPK(scheduledJob.getId())
                        .ifPresent(e -> params.put(Constants.SCHEDULED_JOB, e))
                        .orElse(() -> {
                            logger.warn("Job {} is not found.", scheduledJob.getId());
                        });
                return params;
            };
            findJobByUniqueOf(LaJobUnique.of(id)).ifPresent(job -> {
                if (!job.isUnscheduled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            OptionalEntity<Date> dateOpt = OptionalUtil.ofNullable(new Date());
    
            assertTrue(stringOpt.isPresent());
            assertTrue(intOpt.isPresent());
            assertTrue(boolOpt.isPresent());
            assertTrue(dateOpt.isPresent());
    
            assertEquals("string", stringOpt.get());
            assertEquals(Integer.valueOf(42), intOpt.get());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/PluginUpgradeCliTest.java

            assertFalse(options.plugins().isPresent(), "--plugins should not be present by default");
            assertFalse(options.all().isPresent(), "--all should not be present by default");
            assertFalse(options.infer().isPresent(), "--infer should not be present by default");
            assertFalse(options.model().isPresent(), "--fix-model should not be present by default");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:48:39 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

        protected void checkPermission(final LoginHandlingResource resource) throws LoginRequiredException {
            if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
                getSavedUserBean().ifPresent(user -> {
                    if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) {
                        return;
                    }
                    final Method executeMethod = resource.getExecuteMethod();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            OptionalThing<Locale> result3 = provider.findBusinessLocale(null, mockRequestManager);
    
            // Verify all return same result
            assertTrue(result1.isPresent());
            assertTrue(result2.isPresent());
            assertTrue(result3.isPresent());
            assertEquals(Locale.GERMANY, result1.get());
            assertEquals(Locale.GERMANY, result2.get());
            assertEquals(Locale.GERMANY, result3.get());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  10. internal/kms/config.go

    		}
    		return ParseSecretKey(s)
    	}
    }
    
    // IsPresent reports whether a KMS configuration is present.
    // It returns an error if multiple KMS configurations are
    // present or if one configuration is incomplete.
    func IsPresent() (bool, error) {
    	// isPresent reports whether at least one of the
    	// given env. variables is present.
    	isPresent := func(vars ...string) bool {
    		for _, v := range vars {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15K bytes
    - Click Count (0)
Back to Top