Class JiraCopiedRestErrorCollection
java.lang.Object
com.atlassian.greenhopper.model.validation.JiraCopiedRestErrorCollection
A JAXB representation of an
ErrorCollection useful for returning via JSON or XML.- Since:
- v4.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to create a new immutable error collection. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanbooleaninthashCode()of(com.atlassian.jira.util.ErrorCollection errorCollection) Returns a new ErrorCollection containing all the errors contained in the input error collection.Returns a new ErrorCollection containing a list of error messages.Returns a new ErrorCollection containing a list of error messages.toString()
-
Method Details
-
builder
- Returns:
- a new Builder
-
of
Returns a new ErrorCollection containing a list of error messages.- Parameters:
messages- an array of Strings containing error messages- Returns:
- a new ErrorCollection
-
of
Returns a new ErrorCollection containing a list of error messages.- Parameters:
messages- an Iterable of Strings containing error messages- Returns:
- a new ErrorCollection
-
of
public static JiraCopiedRestErrorCollection of(com.atlassian.jira.util.ErrorCollection errorCollection) Returns a new ErrorCollection containing all the errors contained in the input error collection.- Parameters:
errorCollection- a com.atlassian.jira.util.ErrorCollection- Returns:
- a new ErrorCollection
-
hasAnyErrors
public boolean hasAnyErrors() -
getErrorMessages
-
hashCode
public int hashCode() -
equals
-
toString
-