MCPcopy Create free account
hub / github.com/DiUS/java-faker / ipV6Cidr

Method ipV6Cidr

src/main/java/com/github/javafaker/Internet.java:260–265  ·  view source on GitHub ↗

@return a valid IPV6 CIDR

()

Source from the content-addressed store, hash-verified

258 * @return a valid IPV6 CIDR
259 */
260 public String ipV6Cidr() {
261 return new StringBuilder(ipV6Address())
262 .append('/')
263 .append(faker.random().nextInt(127) + 1)
264 .toString();
265 }
266
267 /**
268 * @return a slug using '_' as the word separator and two {@link Lorem} words as the values

Callers 1

testIpV6CidrMethod · 0.80

Calls 4

ipV6AddressMethod · 0.95
toStringMethod · 0.80
nextIntMethod · 0.80
randomMethod · 0.45

Tested by 1

testIpV6CidrMethod · 0.64