Class EnumRequirement

    • Constructor Detail

      • EnumRequirement

        public EnumRequirement​(Property property,
                               Collection<Object> elements)
        Constructs a EnumRequirement.
        Parameters:
        property - the monitored property
        elements - the allowed elements
    • Method Detail

      • getProperty

        public Property getProperty()
        Description copied from interface: Requirement
        Returns the property of the requirement.
        Specified by:
        getProperty in interface Requirement
        Returns:
        the property of the requirement
      • isFulfilled

        public boolean isFulfilled()
        Description copied from interface: Requirement
        Returns true if the requirement is fulfilled.
        Specified by:
        isFulfilled in interface Requirement
        Returns:
        true if the requirement is fulfilled