public class UniqueProblem
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A collection of one or more problems, grouped by their result.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message
A message about the unique problems' result.
|
private java.util.List<Problem> |
problems
Information about the problems.
|
Constructor and Description |
---|
UniqueProblem() |
Modifier and Type | Method and Description |
---|---|
UniqueProblem |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage()
A message about the unique problems' result.
|
java.util.List<Problem> |
getProblems()
Information about the problems.
|
int |
hashCode() |
void |
setMessage(java.lang.String message)
A message about the unique problems' result.
|
void |
setProblems(java.util.Collection<Problem> problems)
Information about the problems.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UniqueProblem |
withMessage(java.lang.String message)
A message about the unique problems' result.
|
UniqueProblem |
withProblems(java.util.Collection<Problem> problems)
Information about the problems.
|
UniqueProblem |
withProblems(Problem... problems)
Information about the problems.
|
private java.lang.String message
A message about the unique problems' result.
private java.util.List<Problem> problems
Information about the problems.
public void setMessage(java.lang.String message)
A message about the unique problems' result.
message
- A message about the unique problems' result.public java.lang.String getMessage()
A message about the unique problems' result.
public UniqueProblem withMessage(java.lang.String message)
A message about the unique problems' result.
message
- A message about the unique problems' result.public java.util.List<Problem> getProblems()
Information about the problems.
public void setProblems(java.util.Collection<Problem> problems)
Information about the problems.
problems
- Information about the problems.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.
problems
- Information about the problems.public UniqueProblem withProblems(java.util.Collection<Problem> problems)
Information about the problems.
problems
- Information about the problems.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UniqueProblem clone()
clone
in class java.lang.Object