Class SMFFilterCommandContext

    • Method Detail

      • sourceRoot

        public java.nio.file.Path sourceRoot()
        The source root directory. If a filter causes files to be open, they must be descendants of this directory.
        Specified by:
        sourceRoot in interface SMFFilterCommandContextType
        Returns:
        A source root directory
      • withSourceRoot

        public final SMFFilterCommandContext withSourceRoot​(java.nio.file.Path value)
        Copy the current immutable object by setting a value for the sourceRoot attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sourceRoot
        Returns:
        A modified copy of the this object
      • withCurrentPath

        public final SMFFilterCommandContext withCurrentPath​(java.nio.file.Path value)
        Copy the current immutable object by setting a value for the currentPath attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for currentPath
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of SMFFilterCommandContext that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: sourceRoot, currentPath.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value SMFFilterCommandContext with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • of

        public static SMFFilterCommandContext of​(java.nio.file.Path sourceRoot,
                                                 java.nio.file.Path currentPath)
        Construct a new immutable SMFFilterCommandContext instance.
        Parameters:
        sourceRoot - The value for the sourceRoot attribute
        currentPath - The value for the currentPath attribute
        Returns:
        An immutable SMFFilterCommandContext instance
      • copyOf

        public static SMFFilterCommandContext copyOf​(SMFFilterCommandContextType instance)
        Creates an immutable copy of a SMFFilterCommandContextType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable SMFFilterCommandContext instance