@API(status=INTERNAL,
since="5.1")
public class DynamicDescendantFilter
extends java.lang.Object
implements java.util.function.BiPredicate<UniqueId,java.lang.Integer>
TestDescriptors that
implement Filterable.Filterable| Modifier and Type | Class and Description |
|---|---|
private static class |
DynamicDescendantFilter.Mode |
private class |
DynamicDescendantFilter.WithoutIndexFiltering |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<java.lang.Integer> |
allowedIndices |
private java.util.Set<UniqueId> |
allowedUniqueIds |
private DynamicDescendantFilter.Mode |
mode |
| Constructor and Description |
|---|
DynamicDescendantFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowAll() |
void |
allowIndex(java.util.Set<java.lang.Integer> indices) |
void |
allowUniqueIdPrefix(UniqueId uniqueId) |
private boolean |
isEverythingAllowed() |
private boolean |
isPrefixOrViceVersa(UniqueId currentUniqueId,
UniqueId allowedUniqueId) |
private boolean |
isUniqueIdAllowed(UniqueId uniqueId) |
boolean |
test(UniqueId uniqueId,
java.lang.Integer index) |
DynamicDescendantFilter |
withoutIndexFiltering() |
private final java.util.Set<UniqueId> allowedUniqueIds
private final java.util.Set<java.lang.Integer> allowedIndices
private DynamicDescendantFilter.Mode mode
public void allowUniqueIdPrefix(UniqueId uniqueId)
public void allowIndex(java.util.Set<java.lang.Integer> indices)
public void allowAll()
public boolean test(UniqueId uniqueId, java.lang.Integer index)
test in interface java.util.function.BiPredicate<UniqueId,java.lang.Integer>private boolean isEverythingAllowed()
private boolean isUniqueIdAllowed(UniqueId uniqueId)
private boolean isPrefixOrViceVersa(UniqueId currentUniqueId, UniqueId allowedUniqueId)
public DynamicDescendantFilter withoutIndexFiltering()