public interface IResourceErrorGroup extends IHasSize, ICommonsIterable<IResourceError>, IHasErrorLevels, Serializable
| Modifier and Type | Method and Description |
|---|---|
default boolean |
containsAtLeastOneError()
Check if this group contains at least one error or fatal error message.
|
default boolean |
containsAtLeastOneFailure()
Check if this group contains at least one failure message.
|
default boolean |
containsAtLeastOneSuccess()
Check if this group contains at least one success message.
|
default boolean |
containsNoError()
Check if this group contains no error or fatal error message.
|
default boolean |
containsNoFailure()
Check if this group contains no failure message.
|
default boolean |
containsNoSuccess()
Check if this group contains no success message.
|
default boolean |
containsOnlyError()
Check if this group contains only error or fatal error messages.
|
default boolean |
containsOnlyFailure()
Check if this group contains only failure messages.
|
default boolean |
containsOnlySuccess()
Check if this group contains only success messages.
|
default void |
forEachResourceError(Consumer<? super IResourceError> aConsumer)
Deprecated.
|
default IResourceErrorGroup |
getAllErrors()
Get a resource error group containing only the error elements.
|
default IResourceErrorGroup |
getAllFailures()
Get a resource error group containing only the failure elements.
|
ICommonsList<IResourceError> |
getAllResourceErrors()
Get a list of all contained resource errors.
|
default IErrorLevel |
getMostSevereErrorLevel()
Get the most severe error level within this object.
|
getSize, isEmpty, isNotEmptycontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findFirst, findFirst, findFirstMapped, findFirstMapped, forEach, forEachBreakableforEach, iterator, spliteratorgetErrorCount, getFailureCount, getSuccessCount@Nonnull default IErrorLevel getMostSevereErrorLevel()
IHasErrorLevelsEErrorLevel's severity model.getMostSevereErrorLevel in interface IHasErrorLevelsEErrorLevel.SUCCESS if no resource error is contained, the
most severe contained error level otherwise.default boolean containsOnlySuccess()
IHasErrorLevelsfalse is returned, since no success message is contained. If
you want to check, if the list is empty or contains only success messages,
use IHasErrorLevels.containsNoFailure() instead.containsOnlySuccess in interface IHasErrorLevelstrue if at least one item is present, and if all items
have the error level success, false otherwise.IHasErrorLevels.containsNoFailure()default boolean containsAtLeastOneSuccess()
IHasErrorLevelscontainsAtLeastOneSuccess in interface IHasErrorLevelstrue if at least one success item is present,
false otherwise.default boolean containsNoSuccess()
IHasErrorLevelscontainsNoSuccess in interface IHasErrorLevelstrue if no success item is present, false
otherwise.default boolean containsOnlyFailure()
IHasErrorLevelsfalse is returned. All error levels except
EErrorLevel.SUCCESS are considered to be a failure!containsOnlyFailure in interface IHasErrorLevelstrue if at least one item is present, and if all items
have an error level indicating failure, false
otherwise.default boolean containsAtLeastOneFailure()
IHasErrorLevelsEErrorLevel.SUCCESS are considered to be a failure!containsAtLeastOneFailure in interface IHasErrorLevelstrue if at least one failure item is present,
false otherwise.default boolean containsNoFailure()
IHasErrorLevelsEErrorLevel.SUCCESS are considered to be a failure!containsNoFailure in interface IHasErrorLevelstrue if no failure item is present, false
otherwise.default boolean containsOnlyError()
IHasErrorLevelsfalse is returned. All error levels ≥
EErrorLevel.ERROR are considered to be an error!containsOnlyError in interface IHasErrorLevelstrue if at least one item is present, and if all items
have an error level indicating error or fatal error,
false otherwise.default boolean containsAtLeastOneError()
IHasErrorLevelsEErrorLevel.ERROR are considered to be an error!containsAtLeastOneError in interface IHasErrorLevelstrue if at least one error or fatal error item is
present, false otherwise.default boolean containsNoError()
IHasErrorLevelsEErrorLevel.ERROR are considered to be an error!containsNoError in interface IHasErrorLevelstrue if no error or fatal error item is present,
false otherwise.@Nonnull default IResourceErrorGroup getAllFailures()
EErrorLevel.SUCCESS are considered to be a failure!@Nonnull default IResourceErrorGroup getAllErrors()
EErrorLevel.ERROR are considered to be an error!@Nonnull @ReturnsMutableCopy ICommonsList<IResourceError> getAllResourceErrors()
null list of all contained error objects@Deprecated default 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.