with Flag
fun withFlag(flagEncoding: TypeRestriction.RestrictionFlagEncoding): TypeRestriction
Content copied to clipboard
Answer a restriction like the receiver, but with an additional flag set. If the flag is already set, answer the receiver.
Return
The new TypeRestriction, or the receiver.
Parameters
flag Encoding
The RestrictionFlagEncoding to set.