public interface IResourceErrorGroup extends IHasSize, Iterable<IResourceError>, IHasErrorLevels, Serializable
| Modifier and Type | Method and Description |
|---|---|
default void |
forEachResourceError(Consumer<? super IResourceError> aConsumer)
Call the provided consumer for all contained resource errors.
|
IResourceErrorGroup |
getAllErrors()
Get a resource error group containing only the error elements.
|
IResourceErrorGroup |
getAllFailures()
Get a resource error group containing only the failure elements.
|
ICommonsList<IResourceError> |
getAllResourceErrors()
Get a list of all contained resource errors.
|
getSize, isEmpty, isNotEmptyforEach, iterator, spliteratorcontainsAtLeastOneError, containsAtLeastOneFailure, containsAtLeastOneSuccess, containsNoError, containsNoFailure, containsNoSuccess, containsOnlyError, containsOnlyFailure, containsOnlySuccess, getErrorCount, getFailureCount, getMostSevereErrorLevel, getSuccessCount@Nonnull IResourceErrorGroup getAllFailures()
EErrorLevel.SUCCESS are considered to be a failure!@Nonnull IResourceErrorGroup getAllErrors()
EErrorLevel.ERROR are considered to be an error!@Nonnull ICommonsList<IResourceError> getAllResourceErrors()
null list of all contained error objectsdefault void forEachResourceError(@Nonnull Consumer<? super IResourceError> aConsumer)
aConsumer - The consumer to be invoked. May not be null. May only
perform reading actions!Copyright © 2014–2016 Philip Helger. All rights reserved.