Package com.tngtech.archunit.base
Class ForwardingCollection<T>
java.lang.Object
com.tngtech.archunit.base.ForwardingCollection<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
ForwardingList,ForwardingSet,JavaClasses,MetricsComponent,MetricsComponents
@PublicAPI(usage=ACCESS)
public abstract class ForwardingCollection<T>
extends Object
implements Collection<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) protected abstract Collection<T>delegate()booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T1> T1[]toArray(T1[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ForwardingCollection
protected ForwardingCollection()
-
-
Method Details
-
delegate
-
size
- Specified by:
sizein interfaceCollection<T>
-
isEmpty
- Specified by:
isEmptyin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
clear
- Specified by:
clearin interfaceCollection<T>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<T>- Overrides:
equalsin classObject
-
toString
-