IsRequired

public class IsRequired implements ValidatingOption<T, C, K>

A oneof validation option which constrains the target oneof group to be set.

If the value of the option is true, one of the fields in the group must be set.

Functions

Link copied to clipboard
public Constraint constraintFor(OneofDeclaration field)
Creates a Constraint for the given field based on the value of the option.
Link copied to clipboard
public Optional<Boolean> valueFrom(Descriptors.OneofDescriptor descriptor)

Inherited functions

Link copied to clipboard
public boolean valuePresent(K object)