Class SourceOrDisplayCondition

  • All Implemented Interfaces:
    Condition<Path[]>, java.io.Serializable

    public class SourceOrDisplayCondition
    extends java.lang.Object
    implements Condition<Path[]>
    This condition is basically a standard path condition, but the value is an array of paths. If any of the values in the array pass the condition, the overall condition passes.
    See Also:
    Serialized Form
    • Constructor Detail

      • SourceOrDisplayCondition

        public SourceOrDisplayCondition​(PathCondition<Path> condition)
    • Method Detail

      • getPathCondition

        public PathCondition<Path> getPathCondition()
        Returns the condition against which incoming paths will be evaluated.
      • passes

        public boolean passes​(Path[] value)
        Description copied from interface: Condition
        Returns whether the provided value passes the condition.
        Specified by:
        passes in interface Condition<Path[]>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object