Package com.helger.commons.error.list
Class ErrorList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<ELEMENTTYPE>
-
- com.helger.commons.collection.impl.CommonsArrayList<IError>
-
- com.helger.commons.error.list.ErrorList
-
- All Implemented Interfaces:
ICommonsCollection<IError>,ICommonsIterable<IError>,ICommonsList<IError>,IHasErrorLevels<IError>,IErrorList,ICloneable<ICommonsList<IError>>,IHasSize,Serializable,Cloneable,Iterable<IError>,Collection<IError>,List<IError>,RandomAccess
@NotThreadSafe public class ErrorList extends CommonsArrayList<IError> implements IErrorList
Default implementation ofIErrorList.- Since:
- 8.5.0
- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ErrorList()Default constructor.ErrorList(IError... aList)Constructor taking a list of iterable objects.ErrorList(ErrorList aErrorList)Copy constructor.ErrorList(Iterable<? extends IError> aList)Constructor taking a list of iterable objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorListgetClone()ErrorListgetSubList(Predicate<? super IError> aFilter)Get a sub-list with all entries that match the provided predicate.-
Methods inherited from class com.helger.commons.collection.impl.CommonsArrayList
createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createInstance
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsCollection
addAll, 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, setAllMapped
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsList
createInstance, getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getLast, getLast, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, reverse, setFirst, setLast, swapItems
-
Methods inherited from interface com.helger.commons.error.list.IErrorList
getAllDataItems, getAllErrors, getAllFailures, getAllTexts, getGrouped, getGroupedByFieldName, getGroupedByID, getListOfField, getListOfFields, getListOfFields, getListOfFieldsRegExp, getListOfFieldsStartingWith, getListWithoutField, hasEntryForField, hasEntryForField, hasEntryForFields, hasErrorForField, hasNoEntryForField, hasNoEntryForFields
-
Methods inherited from interface com.helger.commons.error.level.IHasErrorLevels
containsAtLeastOneError, containsAtLeastOneFailure, containsAtLeastOneSuccess, containsAtLeastOneWarningOrError, containsNoError, containsNoFailure, containsNoSuccess, containsOnlyError, containsOnlyFailure, containsOnlySuccess, getErrorCount, getFailureCount, getMostSevereErrorLevel, getSuccessCount
-
Methods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, size
-
Methods inherited from interface java.util.List
add, 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, toArray
-
-
-
-
Constructor Detail
-
ErrorList
public ErrorList()
Default constructor.
-
ErrorList
public ErrorList(@Nullable Iterable<? extends IError> aList)
Constructor taking a list of iterable objects.- Parameters:
aList- The list to be added. May benull.
-
ErrorList
public ErrorList(@Nullable IError... aList)
Constructor taking a list of iterable objects.- Parameters:
aList- The array to be added. May benull.
-
-
Method Detail
-
getSubList
@Nonnull public ErrorList getSubList(@Nullable Predicate<? super IError> aFilter)
Description copied from interface:IErrorListGet a sub-list with all entries that match the provided predicate.- Specified by:
getSubListin interfaceIErrorList- Parameters:
aFilter- The filter to be used. May benullin which a copy is returned.- Returns:
- Never
null.
-
getClone
@Nonnull public ErrorList getClone()
- Specified by:
getClonein interfaceICloneable<ICommonsList<IError>>- Overrides:
getClonein classCommonsArrayList<IError>- Returns:
- A 100% deep-copy of the implementing class.
-
-