Module org.refcodes.web
Package org.refcodes.web
Interface IpAddressAccessor.IpAddressBuilder<B extends IpAddressAccessor.IpAddressBuilder<B>>
-
- Type Parameters:
B
- The builder to return in order to be able to apply multiple build operations.
- All Known Subinterfaces:
Url.UrlBuilder
- All Known Implementing Classes:
UrlBuilderImpl
- Enclosing interface:
- IpAddressAccessor
public static interface IpAddressAccessor.IpAddressBuilder<B extends IpAddressAccessor.IpAddressBuilder<B>>
Provides a builder method for a IP-Address property returning the builder for applying multiple build operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
withCidrNotation(String aCidrNotation)
Constructs the IP-Address from the givenString
and sets it for the IP-Address property.B
withIpAddress(int[] aIpAddress)
Sets the IP-Address for the IP-Address property.
-
-
-
Method Detail
-
withIpAddress
B withIpAddress(int[] aIpAddress)
Sets the IP-Address for the IP-Address property.- Parameters:
aIpAddress
- The IP-Address to be stored by the IP-Address property.- Returns:
- The builder for applying multiple build operations.
-
withCidrNotation
B withCidrNotation(String aCidrNotation)
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.- Returns:
- The builder for applying multiple build operations.
-
-