Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for registrySuffix (0.04 sec)

  1. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        InternetDomainName domain = InternetDomainName.from("foo.city.yokohama.jp");
        assertTrue(domain.hasRegistrySuffix());
        assertEquals("yokohama.jp", domain.registrySuffix().toString());
    
        // Behold the weirdness!
        assertFalse(domain.registrySuffix().isRegistrySuffix());
      }
    
      public void testRegistrySuffixMultipleUnders() {
        // PSL has both *.uk and *.sch.uk; the latter should win.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/InternetDomainName.java

       * Returns the {@linkplain #isRegistrySuffix() registry suffix} portion of the domain name, or
       * {@code null} if no registry suffix is present.
       *
       * @since 23.3
       */
      public @Nullable InternetDomainName registrySuffix() {
        return hasRegistrySuffix() ? ancestor(registrySuffixIndex()) : null;
      }
    
      /**
       * Indicates whether this domain name ends in a {@linkplain #isRegistrySuffix() registry suffix},
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.9K bytes
    - Viewed (0)
Back to top