org.jboss.dna.common.collection
Class ThreadSafeProblems

java.lang.Object
  extended by org.jboss.dna.common.collection.AbstractProblems
      extended by org.jboss.dna.common.collection.ThreadSafeProblems
All Implemented Interfaces:
Iterable<Problem>, Problems

@ThreadSafe
public class ThreadSafeProblems
extends AbstractProblems

A thread-safe list of problems for some execution context. The problems will be returned in the order in which they were encountered.

Author:
Randall Hauch

Constructor Summary
ThreadSafeProblems()
           
 
Method Summary
 boolean hasErrors()
          
 boolean hasInfo()
          
 boolean hasProblems()
          
 boolean hasWarnings()
          
 boolean isEmpty()
          
 int size()
          
 
Methods inherited from class org.jboss.dna.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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSafeProblems

public ThreadSafeProblems()
Method Detail

hasErrors

public boolean hasErrors()

Specified by:
hasErrors in interface Problems
Overrides:
hasErrors in class AbstractProblems
See Also:
AbstractProblems.hasErrors()

hasProblems

public boolean hasProblems()

Specified by:
hasProblems in interface Problems
Overrides:
hasProblems in class AbstractProblems
See Also:
AbstractProblems.hasProblems()

hasInfo

public boolean hasInfo()

Specified by:
hasInfo in interface Problems
Overrides:
hasInfo in class AbstractProblems
See Also:
AbstractProblems.hasInfo()

hasWarnings

public boolean hasWarnings()

Specified by:
hasWarnings in interface Problems
Overrides:
hasWarnings in class AbstractProblems
See Also:
AbstractProblems.hasWarnings()

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface Problems
Overrides:
isEmpty in class AbstractProblems
See Also:
AbstractProblems.isEmpty()

size

public int size()

Specified by:
size in interface Problems
Overrides:
size in class AbstractProblems
See Also:
AbstractProblems.size()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.