Class ComparisonScope


  • public class ComparisonScope
    extends Object
    Stores the comparison scope as list of objects (in the form of their symbolic links) for each comparison side.
    • Field Detail

      • EMPTY_SCOPE

        public static final ComparisonScope EMPTY_SCOPE
        The empty scope for each comparison side.
    • Constructor Detail

      • ComparisonScope

        public ComparisonScope​(List<String> mainScope,
                               List<String> otherScope)
        Constructor.
        Parameters:
        mainScope - a list of objects comprising the comparison scope for the main side, can not be null
        otherScope - a list of objects comprising the comparison scope for the other side, can not be null
      • ComparisonScope

        public ComparisonScope​(List<String> mainScope,
                               List<String> otherScope,
                               List<String> ancestorScope)
        Constructor.
        Parameters:
        mainScope - a list of objects comprising the comparison scope for the main side, can not be null
        otherScope - a list of objects comprising the comparison scope for the other side, can not be null
        ancestorScope - a list of objects comprising the comparison scope for the ancestor side, can not be null
    • Method Detail

      • extendScope

        public void extendScope​(String symlink,
                                ComparisonSide side)
        Extends the comparison scope by new symlink.
        Parameters:
        symlink - the symlink to add to the scope, cannot be null
        side - the side of the scope objects, cannot be null
      • getScope

        public List<String> getScope​(ComparisonSide side)
        Returns the list of objects (in the form of their symbolic links) comprising the comparison scope for the specified side.
        Parameters:
        side - the side of the scope objects, can not be null
        Returns:
        a list of FQNs of the scope objects, never null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object