|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.common.collection.AbstractProblems
org.modeshape.common.collection.ThreadSafeProblems
@ThreadSafe public class ThreadSafeProblems
A thread-safe Problems
collection. The problems will be returned
in the order in which they were
encountered.
Field Summary |
---|
Fields inherited from class org.modeshape.common.collection.AbstractProblems |
---|
EMPTY_PROBLEMS |
Constructor Summary | |
---|---|
ThreadSafeProblems()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.modeshape.common.collection.AbstractProblems |
---|
addError, addError, addError, addError, addError, addError, addError, addError, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addInfo, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, addWarning, iterator, logLevelFor, toString, writeTo, writeTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadSafeProblems()
Method Detail |
---|
public boolean hasErrors()
hasErrors
in interface Problems
hasErrors
in class AbstractProblems
AbstractProblems.hasErrors()
public boolean hasProblems()
hasProblems
in interface Problems
hasProblems
in class AbstractProblems
AbstractProblems.hasProblems()
public boolean hasInfo()
hasInfo
in interface Problems
hasInfo
in class AbstractProblems
AbstractProblems.hasInfo()
public boolean hasWarnings()
hasWarnings
in interface Problems
hasWarnings
in class AbstractProblems
AbstractProblems.hasWarnings()
public boolean isEmpty()
isEmpty
in interface Problems
isEmpty
in class AbstractProblems
AbstractProblems.isEmpty()
public int size()
size
in interface Problems
size
in class AbstractProblems
AbstractProblems.size()
protected void addProblem(Problem problem)
addProblem
in class AbstractProblems
AbstractProblems.addProblem(Problem)
public void addAll(Iterable<Problem> problems)
problems
- the problems to add to this list; this method does nothing if null or emptyProblems.addAll(java.lang.Iterable)
protected List<Problem> getProblems()
getProblems
in class AbstractProblems
AbstractProblems.getProblems()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |