Package com.atlassian.jira.util
Class SimpleWarningCollection
java.lang.Object
com.atlassian.jira.util.SimpleWarningCollection
- All Implemented Interfaces:
WarningCollection
,Serializable
A simple implementation of the warning collection interface
- Since:
- v7.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty warning collection.SimpleWarningCollection
(WarningCollection warningsCollection) Copies warnings from an existing warning collection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWarning
(String warningMessage) Add a warning to the collectionvoid
addWarnings
(WarningCollection warningCollection) Add a collection of warningsboolean
Retrieve all the warningsboolean
int
hashCode()
-
Constructor Details
-
SimpleWarningCollection
public SimpleWarningCollection()Creates an empty warning collection. -
SimpleWarningCollection
Copies warnings from an existing warning collection.- Parameters:
warningsCollection
- the original collection to copy.- Since:
- v7.1.8
-
-
Method Details
-
addWarning
Description copied from interface:WarningCollection
Add a warning to the collection
- Specified by:
addWarning
in interfaceWarningCollection
- Parameters:
warningMessage
- to be added
-
addWarnings
Description copied from interface:WarningCollection
Add a collection of warnings
- Specified by:
addWarnings
in interfaceWarningCollection
- Parameters:
warningCollection
- a collection of warnings
-
getWarnings
Description copied from interface:WarningCollection
Retrieve all the warnings
- Specified by:
getWarnings
in interfaceWarningCollection
- Returns:
- all warnings
-
hasAnyWarnings
public boolean hasAnyWarnings()- Specified by:
hasAnyWarnings
in interfaceWarningCollection
- Returns:
- true when there is at least one warning
-
equals
-
hashCode
public int hashCode()
-