@MustImplementEqualsAndHashcode public interface IErrorList extends ICommonsList<IError>, IHasErrorLevels<IError>
IError objects.| Modifier and Type | Method and Description |
|---|---|
default <T> ICommonsList<T> |
getAllDataItems(Function<? super IError,? extends T> aExtractor)
Get a list with only a single data element.
|
default IErrorList |
getAllErrors()
Get a resource error group containing only the error elements.
|
default IErrorList |
getAllFailures()
Get a resource error group containing only the failure elements.
|
default ICommonsList<String> |
getAllTexts(Locale aContentLocale)
Get a list with all contained texts.
|
default <T> ICommonsOrderedMap<T,ICommonsList<IError>> |
getGrouped(Function<? super IError,T> aKeyExtractor) |
default ICommonsMap<String,ICommonsList<IError>> |
getGroupedByFieldName() |
default ICommonsMap<String,ICommonsList<IError>> |
getGroupedByID() |
default IErrorList |
getListOfField(String sSearchFieldName)
Get a sub-list with all entries for the specified field name
|
default IErrorList |
getListOfFields(Collection<String> aSearchFieldNames)
Get a sub-list with all entries for the specified field names
|
default IErrorList |
getListOfFields(String... aSearchFieldNames)
Get a sub-list with all entries for the specified field names
|
default IErrorList |
getListOfFieldsRegExp(String sRegExp)
Get a sub-list with all entries that have field names matching the passed
regular expression.
|
default IErrorList |
getListOfFieldsStartingWith(String... aSearchFieldNames)
Get a sub-list with all entries that have field names starting with one of
the supplied names.
|
default IErrorList |
getListWithoutField()
Get a sub-list with all entries that does not contain an error field name.
|
IErrorList |
getSubList(Predicate<? super IError> aFilter)
Get a sub-list with all entries that match the provided predicate.
|
default boolean |
hasEntryForField(String sSearchFieldName)
Check if any entry for the specified field is present
|
default boolean |
hasEntryForField(String sSearchFieldName,
IErrorLevel aErrorLevel)
Check if any entry for the specified field and the specified error level is
present
|
default boolean |
hasEntryForFields(String... aSearchFieldNames)
Check if any entry for the specified fields are present
|
default boolean |
hasErrorForField(String sSearchFieldName)
Check if any error entry for the specified field is present
|
default boolean |
hasNoEntryForField(String sSearchFieldName)
Check if no entry for the specified field is present
|
default boolean |
hasNoEntryForFields(String... aSearchFieldNames)
Check if no entry for the specified fields are present
|
createInstance, getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getLast, getLast, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, reverse, setFirst, setLast, swapItemsadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayaddAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMappedparallelStream, removeIf, streamcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCountisEmpty, isNotEmpty, sizegetClonecontainsAtLeastOneError, containsAtLeastOneFailure, containsAtLeastOneSuccess, containsAtLeastOneWarningOrError, containsNoError, containsNoFailure, containsNoSuccess, containsOnlyError, containsOnlyFailure, containsOnlySuccess, getErrorCount, getFailureCount, getMostSevereErrorLevel, getSuccessCountdefault boolean hasNoEntryForField(@Nullable String sSearchFieldName)
sSearchFieldName - The field name to search.true if no entry for the specified field is presentdefault boolean hasNoEntryForFields(@Nullable String... aSearchFieldNames)
aSearchFieldNames - The field names to search.true if no entry for any of the specified fields is
presentdefault boolean hasEntryForField(@Nullable String sSearchFieldName)
sSearchFieldName - The field name to search.true if an entry for the specified field is presentdefault boolean hasEntryForField(@Nullable String sSearchFieldName, @Nullable IErrorLevel aErrorLevel)
sSearchFieldName - The field name to search.aErrorLevel - The exact form error level to search. May not be nulltrue if an entry for the specified field is present
that has exactly the specified form error leveldefault boolean hasErrorForField(@Nullable String sSearchFieldName)
sSearchFieldName - The field name to search.true if an error entry for the specified field is
presentdefault boolean hasEntryForFields(@Nullable String... aSearchFieldNames)
aSearchFieldNames - The field names to search.true if an entry for at least one of the specified
fields is present@Nonnull @ReturnsMutableCopy default IErrorList getListOfField(@Nullable String sSearchFieldName)
sSearchFieldName - The field name to search.null.@Nonnull @ReturnsMutableCopy default IErrorList getListOfFields(@Nullable String... aSearchFieldNames)
aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy default IErrorList getListOfFields(@Nullable Collection<String> aSearchFieldNames)
aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy default IErrorList getListOfFieldsStartingWith(@Nullable String... aSearchFieldNames)
aSearchFieldNames - The field names to search.null.@Nonnull @ReturnsMutableCopy default IErrorList getListOfFieldsRegExp(@Nonnull @Nonempty @RegEx String sRegExp)
sRegExp - The regular expression to compare the entries against.null.@Nonnull @ReturnsMutableCopy default IErrorList getListWithoutField()
null.@Nonnull default IErrorList getAllFailures()
EErrorLevel.SUCCESS are considered to be a failure!null error list containing only the failures.@Nonnull default IErrorList getAllErrors()
EErrorLevel.ERROR are considered to be an error!null error list containing only the errors.@Nonnull @ReturnsMutableCopy IErrorList getSubList(@Nullable Predicate<? super IError> aFilter)
aFilter - The filter to be used. May be null in which a copy is
returned.null.@Nonnull @ReturnsMutableCopy default ICommonsList<String> getAllTexts(@Nonnull Locale aContentLocale)
aContentLocale - The content locale to used. May not be null.null.@Nonnull @ReturnsMutableCopy default <T> ICommonsList<T> getAllDataItems(@Nonnull Function<? super IError,? extends T> aExtractor)
T - Type to extract from IError.aExtractor - The data extractor to be used. May not be null.null.@Nonnull @ReturnsMutableCopy default ICommonsMap<String,ICommonsList<IError>> getGroupedByID()
@Nonnull @ReturnsMutableCopy default ICommonsMap<String,ICommonsList<IError>> getGroupedByFieldName()
@Nonnull @ReturnsMutableCopy default <T> ICommonsOrderedMap<T,ICommonsList<IError>> getGrouped(@Nonnull Function<? super IError,T> aKeyExtractor)
T - Return list key typeaKeyExtractor - the key extractor by which the result is grouped.Copyright © 2014–2022 Philip Helger. All rights reserved.