Package com.atlassian.jira.rest.api.util
Class WarningCollection
java.lang.Object
com.atlassian.jira.rest.api.util.WarningCollection
- All Implemented Interfaces:
Serializable
A JAXB representation of an
WarningCollection
useful for returning via JSON or XML.- Since:
- v8.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddWarningCollection
(WarningCollection warningCollection) Adds all the warning messages that are in the given warning collection to this warning collection.addWarningCollection
(WarningCollection warningCollection) Adds all the warning messages that are in the given warning collection to this warning collection.addWarningMessage
(String warningMessage) Adds the given warning message to this warning collection.addWarningMessages
(Collection<String> messages) Adds the given warning messages to this warning collection.boolean
boolean
int
hashCode()
static WarningCollection
of
(WarningCollection warningCollection) Returns a newWarningCollection
containing all the warnings contained in the input warning collection.static WarningCollection
Returns a newWarningCollection
containing a list of warning messages.static WarningCollection
of
(Collection<String> messages) Returns a newWarningCollection
containing a list of warning messages.toString()
-
Method Details
-
of
Returns a newWarningCollection
containing a list of warning messages.- Parameters:
messages
- an array of Strings containing warning messages- Returns:
- a new
WarningCollection
-
of
Returns a newWarningCollection
containing a list of warning messages.- Parameters:
messages
- an Iterable of Strings containing warning messages- Returns:
- a new
WarningCollection
-
of
Returns a newWarningCollection
containing all the warnings contained in the input warning collection.- Parameters:
warningCollection
- aWarningCollection
- Returns:
- a new
WarningCollection
-
addWarningCollection
@Nonnull public WarningCollection addWarningCollection(@Nonnull WarningCollection warningCollection) Adds all the warning messages that are in the given warning collection to this warning collection.- Parameters:
warningCollection
- aWarningCollection
- Returns:
- this
-
addWarningCollection
@Nonnull public WarningCollection addWarningCollection(@Nonnull WarningCollection warningCollection) Adds all the warning messages that are in the given warning collection to this warning collection.- Parameters:
warningCollection
- aWarningCollection
- Returns:
- this
-
addWarningMessage
Adds the given warning message to this warning collection.- Parameters:
warningMessage
- a String containing a warning message- Returns:
- this
-
addWarningMessages
Adds the given warning messages to this warning collection.- Parameters:
messages
- a collection of Strings containing warning messages- Returns:
- this
-
getWarningMessages
-
hasAnyWarnings
public boolean hasAnyWarnings() -
equals
-
hashCode
public int hashCode() -
toString
-