Interface IpAddressAccessor

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).
  • 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

      default String toCidrNotation()
      Constructs the IP-Address String in CIDR notation from the IP-Address property. The String 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.