Class IgnoredDependency


  • public final class IgnoredDependency
    extends Object
    Represents a dependency between two classes that should be ignored when checking the defined constraints.
    • Constructor Detail

      • IgnoredDependency

        public IgnoredDependency​(String fromPattern,
                                 String toPattern)
    • Method Detail

      • create

        public static IgnoredDependency create​(String fromPattern,
                                               String toPattern)
        Creates a new IgnoredDependency by adjusting the given patterns. Patterns will be trimmed and a null or blank pattern will be turned into the match all pattern "**".
        Parameters:
        fromPattern - the pattern for the source of the dependency (or null for any)
        toPattern - the pattern for the target of the dependency (or null for any)
        Returns:
        a new IgnoredDependency
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object