com.atlassian.crowd.model.application
Class RemoteAddress
java.lang.Object
com.atlassian.crowd.model.application.RemoteAddress
- All Implemented Interfaces:
- Serializable, Comparable<RemoteAddress>
public class RemoteAddress
- extends Object
- implements Serializable, Comparable<RemoteAddress>
Represents a valid IP address (IPv4, IPv6) or hostname for an Application
- See Also:
- Serialized Form
Constructor Summary |
RemoteAddress(String address)
Generates a RemoteAddress based on the value provided |
RemoteAddress
public RemoteAddress(String address)
- Generates a RemoteAddress based on the value provided
- Parameters:
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.
getAddress
public String getAddress()
- Returns the address. The address could be a hostname, IPv4, IPv6 address or an IP address with a mask defined in
CIDR format.
- Returns:
- address
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(RemoteAddress o)
- Specified by:
compareTo
in interface Comparable<RemoteAddress>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Atlassian. All Rights Reserved.