public final class IpAddressUnion extends Object
| Constructor and Description |
|---|
IpAddressUnion(Ipv4Address ipv4Address)
Creates an instance of ipv4Address.
|
IpAddressUnion(Ipv6Address ipv6Address)
Creates an instance of ipv6Address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static IpAddressUnion |
fromString(String valInString)
Returns the object of ipAddressUnion fromString input String ipAddressUnion.
|
int |
hashCode() |
Ipv4Address |
ipv4Address()
Returns the attribute ipv4Address.
|
void |
ipv4Address(Ipv4Address ipv4Address)
Sets the attribute ipv4Address.
|
Ipv6Address |
ipv6Address()
Returns the attribute ipv6Address.
|
void |
ipv6Address(Ipv6Address ipv6Address)
Sets the attribute ipv6Address.
|
static IpAddressUnion |
of(Ipv4Address value)
Returns the object of ipAddressUnion for type ipv4Address.
|
static IpAddressUnion |
of(Ipv6Address value)
Returns the object of ipAddressUnion for type ipv6Address.
|
String |
toString() |
public IpAddressUnion(Ipv4Address ipv4Address)
ipv4Address - value of ipv4Addresspublic IpAddressUnion(Ipv6Address ipv6Address)
ipv6Address - value of ipv6Addresspublic static IpAddressUnion of(Ipv4Address value)
value - value of ipAddressUnion for type ipv4Addresspublic static IpAddressUnion of(Ipv6Address value)
value - value of ipAddressUnion for type ipv6Addresspublic Ipv4Address ipv4Address()
public Ipv6Address ipv6Address()
public void ipv4Address(Ipv4Address ipv4Address)
ipv4Address - value of ipv4Addresspublic void ipv6Address(Ipv6Address ipv6Address)
ipv6Address - value of ipv6Addresspublic static IpAddressUnion fromString(String valInString)
valInString - value of input StringCopyright © 2017. All rights reserved.