Package org.instancio

Class Select

java.lang.Object
org.instancio.Select

public final class Select extends Object
Provides static factory methods for creating selectors and selector scopes. Selectors are used for targeting fields and classes. Instancio supports two types of selectors: regular and predicate-based.

Regular selectors allow matching by exact class (not including subtypes) and field:

Predicate selectors, as the name suggests, use a Predicate for matching targets:

The first two allow constructing predicates using convenience builder methods. The last two methods can be used with arbitrary predicates where the builders are not sufficient.

It should be noted that regular selectors have higher precedence than predicate selectors. See the Selectors section of the User Guide for more details.

Since:
1.2.0
See Also: