Class ThrowableCollector
- java.lang.Object
-
- org.antublue.test.engine.internal.util.ThrowableCollector
-
public class ThrowableCollector extends Object
Class to collect a list of Throwable
-
-
Constructor Summary
Constructors Constructor Description ThrowableCollector()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Throwable throwable)Method to collect a ThrowablevoidaddAll(ThrowableCollector throwableCollector)Method to collect Throwable from another ThrowableCollectorOptional<Throwable>getFirst()Method to get the first Throwable or nullList<Throwable>getList()Method to get the list of ThrowablebooleanisEmpty()Method to return whether the collector has any Throwableintsize()Method to get the number of Throwable collected
-
-
-
Method Detail
-
add
public void add(Throwable throwable)
Method to collect a Throwable- Parameters:
throwable-
-
addAll
public void addAll(ThrowableCollector throwableCollector)
Method to collect Throwable from another ThrowableCollector- Parameters:
throwableCollector-
-
size
public int size()
Method to get the number of Throwable collected- Returns:
-
isEmpty
public boolean isEmpty()
Method to return whether the collector has any Throwable- Returns:
-
-