Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for hasPort (0.15 seconds)

  1. android/guava/src/com/google/common/net/HostAndPort.java

       *     to prevent this from occurring.
       */
      public int getPort() {
        checkState(hasPort());
        return port;
      }
    
      /** Returns the current port number, with a default if no port is defined. */
      public int getPortOrDefault(int defaultPort) {
        return hasPort() ? port : defaultPort;
      }
    
      /**
       * Build a HostAndPort instance from separate host and port values.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

          assertTrue(badDefaultPort);
        }
    
        // Check the pre-withDefaultPort() instance.
        if (expectHasExplicitPort) {
          assertTrue(hp.hasPort());
          assertEquals(expectPort, hp.getPort());
        } else {
          assertFalse(hp.hasPort());
          try {
            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/net/HostAndPortTest.java

          assertTrue(badDefaultPort);
        }
    
        // Check the pre-withDefaultPort() instance.
        if (expectHasExplicitPort) {
          assertTrue(hp.hasPort());
          assertEquals(expectPort, hp.getPort());
        } else {
          assertFalse(hp.hasPort());
          try {
            hp.getPort();
            fail("Expected IllegalStateException");
          } catch (IllegalStateException expected) {
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/entity/QueryContextTest.java

            queryContext.addSorts();
    
            assertFalse(queryContext.hasSorts());
            assertTrue(queryContext.sortBuilders().isEmpty());
        }
    
        // Test hasSorts
        @Test
        public void test_hasSorts() {
            queryContext = new QueryContext("test", false);
            assertFalse(queryContext.hasSorts());
    
            queryContext.addSorts(SortBuilders.fieldSort("field"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/CurlTest.java

            boolean hasGet = false, hasPost = false, hasPut = false, hasDelete = false;
            boolean hasHead = false, hasOptions = false, hasTrace = false, hasConnect = false;
    
            for (final Method method : methods) {
                switch (method) {
                case GET:
                    hasGet = true;
                    break;
                case POST:
                    hasPost = true;
                    break;
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

        // Make a first pass to categorize the characters in this string.
        boolean hasColon = false;
        boolean hasDot = false;
        int percentIndex = -1;
        for (int i = 0; i < ipString.length(); i++) {
          char c = ipString.charAt(i);
          if (c == '.') {
            hasDot = true;
          } else if (c == ':') {
            if (hasDot) {
              return null; // Colons must not appear after dots.
            }
            hasColon = true;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                }
                final NamingEnumeration<SearchResult> results =
                        context.search(bindDn, "(name=" + escapeLDAPSearchFilter(groupName) + ")", searchControls);
                if (results.hasMore()) {
                    final SearchResult searchResult = results.next();
                    final Attribute attribute = searchResult.getAttributes().get("sAMAccountName");
                    if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 85.2K bytes
    - Click Count (0)
Back to Top