- All Known Subinterfaces:
IpAddressAccessor.IpAddressProperty
- Enclosing interface:
- IpAddressAccessor
public static interface IpAddressAccessor.IpAddressMutator
Provides a mutator for a IP-Address property.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
fromCidrNotation
(String aCidrNotation) Constructs the IP-Address from the givenString
and sets it for the IP-Address property.void
setIpAddress
(int[] aIpAddress) Sets the IP-Address for the IP-Address property.
-
Method Details
-
setIpAddress
void setIpAddress(int[] aIpAddress) Sets the IP-Address for the IP-Address property.- Parameters:
aIpAddress
- The IP-Address to be stored by the IP-Address property.
-
fromCidrNotation
Constructs the IP-Address from the givenString
and sets it for the IP-Address property. TheString
must be provided in CIDR notation as of "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation".- Parameters:
aCidrNotation
- The IP-AddressString
in CIDR notation to be converted and stored by the IP-Address property.
-