@API(status=EXPERIMENTAL,
since="1.9")
public class IterationSelector
extends java.lang.Object
implements DiscoverySelector
DiscoverySelector that selects the iterations of a parent
DiscoverySelector via their indices so that
TestEngines can discover
a subset of the iterations of tests or containers.DiscoverySelectors.selectIteration(DiscoverySelector, int...)| Modifier and Type | Field and Description |
|---|---|
private java.util.SortedSet<java.lang.Integer> |
iterationIndices |
private DiscoverySelector |
parentSelector |
| Constructor and Description |
|---|
IterationSelector(DiscoverySelector parentSelector,
int... iterationIndices) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.SortedSet<java.lang.Integer> |
getIterationIndices()
Get the selected iteration indices.
|
DiscoverySelector |
getParentSelector()
Get the selected parent
DiscoverySelector. |
int |
hashCode() |
private java.util.SortedSet<java.lang.Integer> |
toSortedSet(int[] iterationIndices) |
java.lang.String |
toString() |
private final DiscoverySelector parentSelector
private final java.util.SortedSet<java.lang.Integer> iterationIndices
IterationSelector(DiscoverySelector parentSelector, int... iterationIndices)
private java.util.SortedSet<java.lang.Integer> toSortedSet(int[] iterationIndices)
public DiscoverySelector getParentSelector()
DiscoverySelector.public java.util.SortedSet<java.lang.Integer> getIterationIndices()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object