@API(value=Experimental) public class CompositeTestSource extends java.lang.Object implements TestSource
CompositeTestSource contains one or more TestSources.
CompositeTestSource and its sources are immutable.
| Constructor and Description |
|---|
CompositeTestSource(java.util.Collection<? extends TestSource> sources)
Create a new
CompositeTestSource based on the supplied
collection of sources. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<TestSource> |
getSources()
Get an immutable list of the sources stored in this
CompositeTestSource. |
int |
hashCode() |
java.lang.String |
toString() |
public CompositeTestSource(java.util.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 java.util.List<TestSource> getSources()
CompositeTestSource.CompositeTestSource; never nullpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object