Package org.instancio.generator.specs
Interface Ip4Spec
- All Superinterfaces:
GeneratorSpec<String>,Ip4GeneratorSpec,ValueSpec<String>
Spec for generating IPv4 addresses.
- Since:
- 2.12.0
-
Method Summary
Modifier and TypeMethodDescriptionGenerates IPv4 address from CIDR notation, for example:fromCidr("192.168.1.0/24").
-
Method Details
-
fromCidr
Description copied from interface:Ip4GeneratorSpecGenerates IPv4 address from CIDR notation, for example:fromCidr("192.168.1.0/24").- Specified by:
fromCidrin interfaceIp4GeneratorSpec- Parameters:
cidr- CIDR notation from which an IP address will be generated- Returns:
- generator spec
-