Class JiraCopiedRestErrorCollection

java.lang.Object
com.atlassian.greenhopper.model.validation.JiraCopiedRestErrorCollection

public class JiraCopiedRestErrorCollection extends Object
A JAXB representation of an ErrorCollection useful for returning via JSON or XML.
Since:
v4.2
  • Method Details

    • builder

      public static JiraCopiedRestErrorCollection.Builder builder()
      Returns:
      a new Builder
    • of

      public static JiraCopiedRestErrorCollection of(String... messages)
      Returns a new ErrorCollection containing a list of error messages.
      Parameters:
      messages - an array of Strings containing error messages
      Returns:
      a new ErrorCollection
    • of

      public static JiraCopiedRestErrorCollection of(Iterable<String> messages)
      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

      public Collection<String> getErrorMessages()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object