Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isNullOrEmpty (0.12 sec)

  1. android/guava-tests/test/com/google/common/base/StringsTest.java

        assertNull(Strings.emptyToNull(""));
        assertEquals("a", Strings.emptyToNull("a"));
      }
    
      public void testIsNullOrEmpty() {
        assertTrue(Strings.isNullOrEmpty(null));
        assertTrue(Strings.isNullOrEmpty(""));
        assertFalse(Strings.isNullOrEmpty("a"));
      }
    
      public void testPadStart_noPadding() {
        assertSame("", Strings.padStart("", 0, '-'));
        assertSame("x", Strings.padStart("x", 0, '-'));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

        }
    
        private boolean isSingleWordQuery(final String query) {
            return !Strings.isNullOrEmpty(query) && !query.contains(" ") && !query.contains(" ");
        }
    
        protected QueryBuilder buildQuery(final String q, final List<String> fields) {
            try {
                final QueryBuilder queryBuilder;
                if (Strings.isNullOrEmpty(q)) {
                    queryBuilder = QueryBuilders.matchAllQuery();
                } else {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

            }
            arraySettings.delete(BAD_WORD_SETTINGD_KEY);
        }
    
        protected String getValidationError(final String badWord) {
            if (Strings.isNullOrEmpty(badWord)) {
                return "badWord was empty.";
            }
            if (badWord.contains(" ") || badWord.contains("  ")) {
                return "badWord contains space.";
            }
            return null;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts

                    throw GradleException("artifactoryUrl is not set!")
                }
                if (artifactoryUserName.isNullOrEmpty()) {
                    throw GradleException("artifactoryUserName is not set!")
                }
                if (artifactoryUserPassword.isNullOrEmpty()) {
                    throw GradleException("artifactoryUserPassword is not set!")
                }
            }
        }
    }
    
    publishing {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Sep 25 08:20:22 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/StringsTest.java

        assertNull(Strings.emptyToNull(""));
        assertEquals("a", Strings.emptyToNull("a"));
      }
    
      public void testIsNullOrEmpty() {
        assertTrue(Strings.isNullOrEmpty(null));
        assertTrue(Strings.isNullOrEmpty(""));
        assertFalse(Strings.isNullOrEmpty("a"));
      }
    
      public void testPadStart_noPadding() {
        assertSame("", Strings.padStart("", 0, '-'));
        assertSame("x", Strings.padStart("x", 0, '-'));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. mvnw.cmd

            echo Downloading from: %WRAPPER_URL%
        )
    
        powershell -Command "&{"^
    		"$webclient = new-object System.Net.WebClient;"^
    		"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
    		"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
    		"}"^
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 14 22:24:15 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

            publishNormalizedToLocalRepository()
        }
    }
    
    val pgpSigningKey: Provider<String> = providers.environmentVariable("PGP_SIGNING_KEY")
    val signArtifacts: Boolean = !pgpSigningKey.orNull.isNullOrEmpty()
    
    tasks.withType<Sign>().configureEach { isEnabled = signArtifacts }
    
    signing {
        useInMemoryPgpKeys(
            project.providers.environmentVariable("PGP_SIGNING_KEY").orNull,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Sep 19 13:21:47 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/converter/AnalyzerConverter.java

                        final String term = termTokenList.get(i).getTerm();
                        String reading = readingTokenList.get(i).getTerm();
                        if (Strings.isNullOrEmpty(reading)) {
                            reading = term;
                        }
                        reading = transliterator.transliterate(reading);
    
                        final int pos = text.indexOf(term, offset);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top