@API(status=STABLE, since="1.0") public class CompositeTestSource extends Object implements TestSource
CompositeTestSource contains one or more TestSources.
CompositeTestSource and its sources are immutable.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static CompositeTestSource |
from(Collection<? extends TestSource> sources)
Create a new
CompositeTestSource based on the supplied
collection of sources. |
List<TestSource> |
getSources()
Get an immutable list of the sources stored in this
CompositeTestSource. |
int |
hashCode() |
String |
toString() |
public static CompositeTestSource from(Collection<? extends TestSource> sources)
CompositeTestSource based on the supplied
collection of sources.
This constructor makes a defensive copy of the supplied collection and stores the sources as a list in the order in which they are returned by the collection's iterator.
sources - the collection of sources to store in this
CompositeTestSource; never null or emptypublic final List<TestSource> getSources()
CompositeTestSource.CompositeTestSource; never null