@NotThreadSafe public class ErrorList extends Object implements IErrorList, ICloneable<ErrorList>
IErrorList.| Constructor and Description |
|---|
ErrorList()
Default constructor.
|
ErrorList(ErrorList aErrorList)
Copy constructor.
|
ErrorList(IError... aList)
Constructor taking a list of iterable objects.
|
ErrorList(Iterable<? extends IError> aList)
Constructor taking a list of iterable objects.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorList |
add(IError aError) |
void |
addAll(IError... aErrorList) |
void |
addAll(Iterable<? extends IError> aErrorList) |
EChange |
clear() |
boolean |
equals(Object o) |
ICommonsList<IError> |
getAllItems() |
ErrorList |
getClone() |
int |
getSize() |
ErrorList |
getSubList(Predicate<? super IError> aFilter)
Get a sub-list with all entries that match the provided predicate.
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator<IError> |
iterator() |
EChange |
remove(IError aError) |
EChange |
removeAll(IError... aErrors) |
EChange |
removeAll(Iterable<? extends IError> aErrors) |
EChange |
removeIf(Predicate<? super IError> aFilter) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllDataItems, getAllErrors, getAllFailures, getAllTexts, getGrouped, getGroupedByFieldName, getGroupedByID, getListOfField, getListOfFields, getListOfFieldsRegExp, getListOfFieldsStartingWith, getListWithoutField, hasEntryForField, hasEntryForField, hasEntryForFields, hasErrorForField, hasNoEntryForField, hasNoEntryForFieldscontainsAtLeastOneError, containsAtLeastOneFailure, containsAtLeastOneSuccess, containsAtLeastOneWarningOrError, containsNoError, containsNoFailure, containsNoSuccess, containsOnlyError, containsOnlyFailure, containsOnlySuccess, getErrorCount, getFailureCount, getMostSevereErrorLevel, getSuccessCountcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstMapped, findFirstMapped, forEach, forEach, forEachBreakable, getIteratorCount, getIteratorCountforEach, spliteratorisNotEmptypublic ErrorList()
public ErrorList(@Nullable Iterable<? extends IError> aList)
aList - The list to be added. May be null.public ErrorList(@Nullable IError... aList)
aList - The array to be added. May be null.public boolean isEmpty()
isEmpty in interface IHasSizetrue if no items are present, false if at
least a single item is present.IHasSize.getSize(),
IHasSize.isNotEmpty()@Nonnegative public int getSize()
@Nonnull @ReturnsMutableCopy public ICommonsList<IError> getAllItems()
getAllItems in interface IErrorListnull.@Nonnull public ErrorList getSubList(@Nullable Predicate<? super IError> aFilter)
IErrorListgetSubList in interface IErrorListaFilter - The filter to be used. May be null in which a copy is
returned.null.@Nonnull public ErrorList getClone()
getClone in interface ICloneable<ErrorList>Copyright © 2014–2017 Philip Helger. All rights reserved.