Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for isNullOrEmpty (0.2 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/converter/KatakanaConverter.java

             * args = new HashMap<>(); args.put("mode", "normal"); args.put("discardPunctuation", "false"); if
             * (Strings.isNullOrEmpty(path)) { args.put("userDictionary", path); } if (Strings.isNullOrEmpty(encoding)) {
             * args.put("userDictionaryEncoding", encoding); } final JapaneseTokenizerFactory japaneseTokenizerFactory = new
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. .teamcity/mvnw.cmd

            echo Downloading from: %DOWNLOAD_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: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/org/codelibs/fess/suggest/request/Request.java

    public abstract class Request<T extends Response> {
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
                throw new IllegalArgumentException(error);
            }
    
            final Deferred<T> deferred = new Deferred<>();
            try {
                processRequest(client, deferred);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        pattern: String?,
      ): Boolean {
        var hostname = hostname
        var pattern = pattern
        if (hostname.isNullOrEmpty() ||
          hostname.startsWith(".") ||
          hostname.endsWith("..")
        ) {
          // Invalid domain name.
          return false
        }
        if (pattern.isNullOrEmpty() ||
          pattern.startsWith(".") ||
          pattern.endsWith("..")
        ) {
          // Invalid pattern.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. 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)
Back to top