public class SimpleWarningCollection extends Object implements WarningCollection, Serializable
Constructor and Description |
---|
SimpleWarningCollection()
Creates an empty warning collection.
|
SimpleWarningCollection(WarningCollection warningsCollection)
Copies warnings from an existing warning collection.
|
Modifier and Type | Method and Description |
---|---|
void |
addWarning(String warningMessage)
Add a warning to the collection
|
boolean |
equals(Object o) |
Collection<String> |
getWarnings()
Retrieve all the warnings
|
boolean |
hasAnyWarnings() |
int |
hashCode() |
public SimpleWarningCollection()
public SimpleWarningCollection(@Nonnull WarningCollection warningsCollection)
warningsCollection
- the original collection to copy.public void addWarning(String warningMessage)
WarningCollection
Add a warning to the collection
addWarning
in interface WarningCollection
warningMessage
- to be addedpublic Collection<String> getWarnings()
WarningCollection
Retrieve all the warnings
getWarnings
in interface WarningCollection
public boolean hasAnyWarnings()
hasAnyWarnings
in interface WarningCollection
Copyright © 2002-2018 Atlassian. All Rights Reserved.