Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for IsPresent (0.04 sec)

  1. android/guava/src/com/google/common/io/CharSource.java

       * @since 19.0
       */
      public long length() throws IOException {
        Optional<Long> lengthIfKnown = lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          return lengthIfKnown.get();
        }
    
        Closer closer = Closer.create();
        try {
          Reader reader = closer.register(openStream());
          return countBySkipping(reader);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

       * @since 19.0
       */
      public long length() throws IOException {
        Optional<Long> lengthIfKnown = lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          return lengthIfKnown.get();
        }
    
        Closer closer = Closer.create();
        try {
          Reader reader = closer.register(openStream());
          return countBySkipping(reader);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt

       * exceptions thrown from the test do not cause this check to fail.
       */
      @RegisterExtension
      val noDataLeftBehind =
        AfterEachCallback { context: ExtensionContext ->
          if (context.executionException.isPresent) return@AfterEachCallback
          assertThat(data.readByteString().hex(), "Data not empty")
            .isEqualTo("")
        }
    
      // Mutually exclusive. Use the one corresponding to the peer whose behavior you wish to test.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. 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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. android/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(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/reqheader/ApiAdminReqheaderAction.java

         * @return true if the web configuration exists, false otherwise
         */
        protected Boolean isValidWebConfigId(final String webconfigId) {
            return webConfigService.getWebConfig(webconfigId).isPresent();
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/webauth/ApiAdminWebauthAction.java

         * @return true if the web configuration exists, false otherwise
         */
        protected Boolean isValidWebConfigId(final String webconfigId) {
            return webConfigService.getWebConfig(webconfigId).isPresent();
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/sso/SsoAction.java

         *
         * @return ActionResponse directing to the appropriate page based on authentication result
         */
        @Execute
        public ActionResponse index() {
            if (fessLoginAssist.getSavedUserBean().isPresent()) {
                return redirectToSearchPage().orElseGet(() -> {
                    if (logger.isDebugEnabled()) {
                        logger.debug("User is already logged in, redirecting to root.");
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

                if (!fessConfig.isAdminUser(username)) {
                    final OptionalEntity<FessUser> ldapUser = ComponentUtil.getLdapManager().login(username, password);
                    if (ldapUser.isPresent()) {
                        return ldapUser;
                    }
                }
                return doFindLoginUser(username, encryptPassword(password));
            });
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

            assertNotNull(confPath);
            // Should be empty when not docker app type
            if (!"docker".equalsIgnoreCase(ResourceUtil.getAppType())) {
                assertFalse(confPath.isPresent());
            }
        }
    
        public void test_getFesenHttpUrl() {
            String url = ResourceUtil.getFesenHttpUrl();
            assertNotNull(url);
            // Should return either system property or config value
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top