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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) protected abstract Collection<T>
delegate()
boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T1> T1[]
toArray
(T1[] a) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ForwardingCollection
protected ForwardingCollection()
-
-
Method Details
-
delegate
-
size
- Specified by:
size
in interfaceCollection<T>
-
isEmpty
- Specified by:
isEmpty
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
add
- Specified by:
add
in interfaceCollection<T>
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
clear
- Specified by:
clear
in interfaceCollection<T>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T>
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceCollection<T>
- Overrides:
equals
in classObject
-
toString
-