- All Known Subinterfaces:
IpAddressAccessor.IpAddressProperty
public interface IpAddressAccessor
Provides an accessor for a IP-Address property. The IP-Address is represented
as an array of ints. This interface provides means to convert it from and to
its
String
representation via toCidrNotation()
and
IpAddressAccessor.IpAddressMutator.fromCidrNotation(String)
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Provides a builder method for a IP-Address property returning the builder for applying multiple build operations.static interface
Provides a mutator for a IP-Address property.static interface
Provides a IP-Address property. -
Method Summary
-
Method Details
-
getIpAddress
int[] getIpAddress()Retrieves the IP-Address from the IP-Address property.- Returns:
- The IP-Address stored by the IP-Address property.
-
toCidrNotation
Constructs the IP-AddressString
in CIDR notation from the IP-Address property. TheString
is provided as CIDR notation as of "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation".- Returns:
- The IP-Address converted to a
String
by the IP-Address property.
-