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 TypeMethodDescriptionvoidaddWarning(String warningMessage) Add a warning to the collectionvoidaddWarnings(WarningCollection warningCollection) Add a collection of warningsbooleanRetrieve all the warningsbooleaninthashCode()
-
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:WarningCollectionAdd a warning to the collection
- Specified by:
addWarningin interfaceWarningCollection- Parameters:
warningMessage- to be added
-
addWarnings
Description copied from interface:WarningCollectionAdd a collection of warnings
- Specified by:
addWarningsin interfaceWarningCollection- Parameters:
warningCollection- a collection of warnings
-
getWarnings
Description copied from interface:WarningCollectionRetrieve all the warnings
- Specified by:
getWarningsin interfaceWarningCollection- Returns:
- all warnings
-
hasAnyWarnings
public boolean hasAnyWarnings()- Specified by:
hasAnyWarningsin interfaceWarningCollection- Returns:
- true when there is at least one warning
-
equals
-
hashCode
public int hashCode()
-