Class ValidLimitation

  • All Implemented Interfaces:
    Predicate<Limited>

    public class ValidLimitation
    extends Object
    implements Predicate<Limited>
    Evaluates if the provided Holiday instance is valid for the provided year.
    • Constructor Detail

      • ValidLimitation

        public ValidLimitation​(int year)
    • Method Detail

      • test

        public boolean test​(Limited limited)
        Evaluates if the provided Holiday instance is valid for the provided year.
        Specified by:
        test in interface Predicate<Limited>
        Returns:
        is valid for the year.