Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 160 for isPresent (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/io/CharSourceTester.java

        assertEquals(expected.length(), source.length());
      }
    
      public void testLengthIfKnown() throws IOException {
        Optional<Long> lengthIfKnown = source.lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          assertEquals(expected.length(), (long) lengthIfKnown.get());
        }
      }
    
      public void testReadLines_withProcessor() throws IOException {
        List<String> list =
            source.readLines(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/storage/ApiAdminStorageAction.java

         */
        @Execute
        public JsonResponse<ApiResult> list(final OptionalThing<String> id) {
            final List<Map<String, Object>> list = getFileItems(id.isPresent() ? decodePath(id.get()) : null);
            try {
                return asJson(new ApiResult.ApiStorageResponse().items(list).status(ApiResult.Status.OK).result());
            } catch (final ResultOffsetExceededException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTester.java

        assertEquals(expected.length, source.size());
      }
    
      public void testSizeIfKnown() throws IOException {
        Optional<Long> sizeIfKnown = source.sizeIfKnown();
        if (sizeIfKnown.isPresent()) {
          assertEquals(expected.length, (long) sizeIfKnown.get());
        }
      }
    
      public void testContentEquals() throws IOException {
        assertTrue(
            source.contentEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

            boolean validArtifactId = Objects.equals(a1, a2);
            for (SourceRoot sr : getSourceRoots(project)) {
                Optional<String> moduleName = sr.module();
                if (moduleName.isPresent()) {
                    isMultiModule = true;
                    if (moduleName.get().equals(a2)) {
                        validArtifactId = true;
                        break;
                    }
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

                @Override
                public void permissionChanged(OptionalThing<FessUserBean> userBean) {
                    activityHelperCalled.set(true);
                    assertTrue(userBean.isPresent());
                    assertSame(ldapUser, userBean.get().getFessUser());
                }
            }, "activityHelper");
    
            String[] permissions = ldapUser.getPermissions();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            final Optional<OperationInfo> result = helper.getOperationInfo("reindex");
    
            assertTrue(result.isPresent());
            final OperationInfo info = result.get();
            assertEquals("reindex", info.name);
            assertEquals("node1@host1", info.instanceId);
            assertEquals("host1", info.hostname);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         * <p>
         * <strong>Implementation Note:</strong> The default implementation is equivalent to:
         * </p>
         * <pre>{@code
         * Optional<Path> configured = targetPath();
         * if (configured.isPresent() && configured.get().isAbsolute()) {
         *     return configured.get();
         * }
         * Path outputDir = project.getOutputDirectory(scope());
         * return configured.map(outputDir::resolve).orElse(outputDir);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                                // 1. Child's phase start waits for parent's phase start
                                plan.step(p, BEFORE + n2).ifPresent(before::executeBefore);
                                // 2. Parent's phase completion waits for child's phase completion
                                plan.step(p, AFTER + n2).ifPresent(after::executeAfter);
                            });
                        }
                    });
                });
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  9. cmd/common-main.go

    	}
    }
    
    // Initialize KMS global variable after valiadating and loading the configuration.
    // It depends on KMS env variables and global cli flags.
    func handleKMSConfig() {
    	present, err := kms.IsPresent()
    	if err != nil {
    		logger.Fatal(err, "Invalid KMS configuration specified")
    	}
    	if !present {
    		return
    	}
    
    	KMS, err := kms.Connect(GlobalContext, &kms.ConnectionOptions{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  10. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

         * @return The HTML response.
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse list(final OptionalThing<Integer> pageNumber, final SearchForm form) {
            pageNumber.ifPresent(num -> {
                dataConfigPager.setCurrentPageNumber(pageNumber.get());
            }).orElse(() -> {
                dataConfigPager.setCurrentPageNumber(0);
            });
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 21K bytes
    - Click Count (0)
Back to Top