Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fromString (0.17 sec)

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

    import java.io.Serializable;
    import javax.annotation.CheckForNull;
    
    /**
     * An immutable representation of a host and port.
     *
     * <p>Example usage:
     *
     * <pre>
     * HostAndPort hp = HostAndPort.fromString("[2001:db8::1]")
     *     .withDefaultPort(80)
     *     .requireBracketsForIPv6();
     * hp.getHost();   // returns "2001:db8::1"
     * hp.getPort();   // returns 80
     * hp.toString();  // returns "[2001:db8::1]:80"
     * </pre>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
Back to top