Package org.instancio
Interface DepthSelector
- All Known Subinterfaces:
FieldSelectorBuilder
,PredicateSelector
,Selector
,TypeSelectorBuilder
public interface DepthSelector
Allows specifying selector target's depth.
- Since:
- 2.14.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionatDepth
(int depth) Restricts this selector's target(s) to the specified depth.
-
Method Details
-
atDepth
Restricts this selector's target(s) to the specified depth.When a selector
atDepth(N)
is convertedtoScope()
, the semantics ofSelector.within(Scope...)
method still hold, meaning: at depth equal to or greater thanN
.- Parameters:
depth
- the depth at which selector applies- Returns:
- selector restricted to the specified depth
- Since:
- 2.14.0
-