Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InternetDomainName (0.07 sec)

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

        String ancestorName = name.substring(substringFrom);
    
        return new InternetDomainName(ancestorName, ancestorParts);
      }
    
      /**
       * Creates and returns a new {@code InternetDomainName} by prepending the argument and a dot to
       * the current name. For example, {@code InternetDomainName.from("foo.com").child("www.bar")}
       * returns a new {@code InternetDomainName} with the value {@code www.bar.foo.com}. Only lenient
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        assertEquals("com", InternetDomainName.from("google.com").parent().toString());
        assertEquals("uk", InternetDomainName.from("co.uk").parent().toString());
        assertEquals("google.com", InternetDomainName.from("www.google.com").parent().toString());
    
        assertThrows(IllegalStateException.class, () -> InternetDomainName.from("com").parent());
      }
    
      public void testChild() {
        InternetDomainName domain = InternetDomainName.from("foo.com");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
Back to top