@ThreadSafe public class ThreadSafeProblems extends AbstractProblems
Problems
collection. The problems will be returned
in the order in which they were
encountered.EMPTY_PROBLEMS
Constructor and Description |
---|
ThreadSafeProblems() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(Iterable<Problem> problems)
Add all of the problems in the supplied list.
|
protected void |
addProblem(Problem problem) |
protected List<Problem> |
getProblems() |
boolean |
hasErrors()
Determine if there is at least one error in this collection.
|
boolean |
hasInfo()
Determine if there is at least one informational problem in this collection.
|
boolean |
hasProblems()
Determine if there are problems in this collection.
|
boolean |
hasWarnings()
Determine if there is at least one warning in this collection.
|
boolean |
isEmpty()
Determine if this collection is empty.
|
int |
size()
Get the number of problems that are in this collection
|
addError, addError, addError, addError, addError, addError, addError, addError, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, apply, apply, apply, errorCount, infoCount, iterator, logLevelFor, problemCount, toString, warningCount, writeTo, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public boolean hasErrors()
Problems
hasErrors
in interface Problems
hasErrors
in class AbstractProblems
public boolean hasProblems()
Problems
hasProblems
in interface Problems
hasProblems
in class AbstractProblems
Problems.isEmpty()
,
Problems.size()
public boolean hasInfo()
Problems
hasInfo
in interface Problems
hasInfo
in class AbstractProblems
public boolean hasWarnings()
Problems
hasWarnings
in interface Problems
hasWarnings
in class AbstractProblems
public boolean isEmpty()
Problems
isEmpty
in interface Problems
isEmpty
in class AbstractProblems
Problems.hasProblems()
,
Problems.size()
public int size()
Problems
size
in interface Problems
size
in class AbstractProblems
Problems.hasProblems()
,
Problems.isEmpty()
protected void addProblem(Problem problem)
addProblem
in class AbstractProblems
public void addAll(Iterable<Problem> problems)
Problems
problems
- the problems to add to this list; this method does nothing if null or emptyprotected List<Problem> getProblems()
getProblems
in class AbstractProblems
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.