Class MonitorId.Builder

    • Method Detail

      • validate

        protected Validator validate​(Validator problems)
        Description copied from class: EField.Builder
        This method should be overridden by subclass message builders and called before doing its own validation. The first line in the subclass validate implementation should be super.validate(problems);.

        When overriding this method, be sure to add all discovered validation problems to the list. The validation method should consist of a series of individual if statements and not an if/else if chain. That way all problems are found and not just the first one.

        Please see Validator for an example of how to validate Builder settings.

        Overrides:
        validate in class EField.Builder<MonitorId>
        Parameters:
        problems - used to check field validity and collect discovered invalid fields.
        Returns:
        problems to allow for method chaining.
        See Also:
        Validator