Package org.instancio.generator.specs
Interface Ip4GeneratorSpec
- All Superinterfaces:
GeneratorSpec<String>
- All Known Subinterfaces:
Ip4Spec
- All Known Implementing Classes:
Ip4Generator
Generator spec for IPv4.
- 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
Generates IPv4 address from CIDR notation, for example:fromCidr("192.168.1.0/24")
.- Parameters:
cidr
- CIDR notation from which an IP address will be generated- Returns:
- generator spec
- Since:
- 2.12.0
-