CompositeTestSource contains one or more TestSources.
CompositeTestSource and its sources are immutable.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static CompositeTestSource | from(Collection<? extends TestSource>
the collection of sources to store in this
sources)CompositeTestSource; never null or emptyCreate a new |
| public List | Returns: the sources stored in thisCompositeTestSource; never nullGet an immutable list of the sources stored in this
|
| public int | |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| sources | back to summary |
|---|---|
private final List<TestSource> sources
| |
| CompositeTestSource | back to summary |
|---|---|
| private CompositeTestSource(Collection<? extends TestSource> sources) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| from | back to summary |
|---|---|
| public static CompositeTestSource from(Collection<? extends TestSource> sources) Create a new 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.
| |
| getSources | back to summary |
|---|---|
| public List Get an immutable list of the sources stored in this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |