Class ConditionType

  • Direct Known Subclasses:
    CrawlCondition, Invariant

    @Immutable
    public abstract class ConditionType
    extends Object
    A combination of a condition and preconditions.
    • Field Detail

      • preConditions

        private final com.google.common.collect.ImmutableList<Condition> preConditions
      • description

        private final String description
      • condition

        private final Condition condition
    • Constructor Detail

      • ConditionType

        public ConditionType​(String description,
                             Condition condition)
        Parameters:
        description - the textual description.
        condition - the actual condition.
      • ConditionType

        public ConditionType​(String description,
                             Condition condition,
                             Condition... preConditions)
        Parameters:
        description - the textual description.
        condition - the actual condition.
        preConditions - the preconditions.
      • ConditionType

        public ConditionType​(String description,
                             Condition condition,
                             List<Condition> preConditions)
        Parameters:
        description - the textual description.
        condition - the actual condition.
        preConditions - a list of preconditions.
    • Method Detail

      • getDescription

        public String getDescription()
        Returns:
        the description
      • getCondition

        public Condition getCondition()
        Returns:
        the conditionType
      • getPreConditions

        public com.google.common.collect.ImmutableList<Condition> getPreConditions()
        Returns:
        the preconditions
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object