public class RemoteAddress extends Object implements Serializable, Comparable<RemoteAddress>
Constructor and Description |
---|
RemoteAddress(String address)
Generates a RemoteAddress based on the value provided
|
public RemoteAddress(String address)
address
- can be either a hostname or IP address (IPv4 or IPv6)
An IPv4, IPv6 address can also have a mask defined in CIDR format
Any input that is not recognised as IPv4 or IPv6 format will be treated as a hostname.public String getAddress()
public int compareTo(RemoteAddress o)
compareTo
in interface Comparable<RemoteAddress>
Copyright © 2013 Atlassian. All Rights Reserved.