net.i2p.util
public abstract class Addresses extends Object
Constructor and Description |
---|
Addresses() |
Modifier and Type | Method and Description |
---|---|
static SortedSet<String> |
getAddresses() |
static SortedSet<String> |
getAddresses(boolean includeLocal,
boolean includeIPv6) |
static SortedSet<String> |
getAllAddresses() |
static String |
getAnyAddress() |
static void |
main(String[] args) |
public static String getAnyAddress()
public static SortedSet<String> getAddresses()
public static SortedSet<String> getAllAddresses()
public static SortedSet<String> getAddresses(boolean includeLocal, boolean includeIPv6)
includeLocal
- whether to include localincludeIPv6
- whether to include IPV6public static void main(String[] args)