tuweni / org.apache.tuweni.config / PropertyValidator / isValidPortOrZero

isValidPortOrZero

open static fun isValidPortOrZero(): PropertyValidator<Int!>! (source)

A validator that ensures a property, if present, is a well-formed port number, or zero - meaning it will be allocated at runtime.

Return
PropertyValidator<Int!>!: A validator that ensures a property, if present, is a well-formed number or zero.