Package org.instancio

Interface DepthSelector

All Known Subinterfaces:
FieldSelectorBuilder, PredicateSelector, Selector, TypeSelectorBuilder

public interface DepthSelector
Allows specifying target depth.
Since:
2.14.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    atDepth(int depth)
    Restricts this selector's target(s) to the specified depth.
  • Method Details

    • atDepth

      @ExperimentalApi GroupableSelector atDepth(int depth)
      Restricts this selector's target(s) to the specified depth.

      When a selector atDepth(N) is converted toScope(), the semantics of Selector.within(Scope...) method still hold, meaning: at depth equal to or greater than N.

      Parameters:
      depth - the depth at which selector applies
      Returns:
      selector restricted to the specified depth
      Since:
      2.14.0