public class RemoteAddress extends Object implements Serializable, Comparable<RemoteAddress>
| Constructor and Description |
|---|
RemoteAddress(String address)
Generates a RemoteAddress based on the value provided
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RemoteAddress o) |
boolean |
equals(Object o) |
String |
getAddress()
Returns the address.
|
int |
hashCode() |
String |
toString() |
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 © 2024 Atlassian. All rights reserved.