Interface IMandatoryIndicator

All Known Implementing Classes:
EMandatory

public interface IMandatoryIndicator
Very simple interface for an object that has mandatory/optional indication.
Author:
Philip Helger
  • Method Details

    • isMandatory

      boolean isMandatory()
      Returns:
      true if mandatory and false if not mandatory.
    • isOptional

      default boolean isOptional()
      Returns:
      true if optional and false if not optional.
    • or

      @Nonnull default EMandatory or(@Nonnull IMandatoryIndicator aMandatory)
    • and

      @Nonnull default EMandatory and(@Nonnull IMandatoryIndicator aMandatory)