Class UniqueProblem

    • Constructor Detail

      • UniqueProblem

        public UniqueProblem()
    • Method Detail

      • setMessage

        public void setMessage​(String message)

        A message about the unique problems' result.

        Parameters:
        message - A message about the unique problems' result.
      • getMessage

        public String getMessage()

        A message about the unique problems' result.

        Returns:
        A message about the unique problems' result.
      • withMessage

        public UniqueProblem withMessage​(String message)

        A message about the unique problems' result.

        Parameters:
        message - A message about the unique problems' result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getProblems

        public List<Problem> getProblems()

        Information about the problems.

        Returns:
        Information about the problems.
      • setProblems

        public void setProblems​(Collection<Problem> problems)

        Information about the problems.

        Parameters:
        problems - Information about the problems.
      • withProblems

        public UniqueProblem withProblems​(Problem... problems)

        Information about the problems.

        NOTE: This method appends the values to the existing list (if any). Use setProblems(java.util.Collection) or withProblems(java.util.Collection) if you want to override the existing values.

        Parameters:
        problems - Information about the problems.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withProblems

        public UniqueProblem withProblems​(Collection<Problem> problems)

        Information about the problems.

        Parameters:
        problems - Information about the problems.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object