Interface Query.Builder
-
- All Superinterfaces:
Buildable.Builder<Query>
,Builder<Query,Query.Builder>
,ResettableBuilder<Query,Query.Builder>
- Enclosing interface:
- Query
public static interface Query.Builder extends Builder<Query,Query.Builder>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Query.Builder
and(Query... queries)
Builds a new query which combines the queries in given order.Query
build()
Builds the composite query.Query.Builder
or(Query... queries)
Builds a new query matching any of the queries.
-
-
-
Method Detail
-
or
Query.Builder or(Query... queries)
Builds a new query matching any of the queries.- Parameters:
queries
- The queries to match- Returns:
- This builder
-
and
Query.Builder and(Query... queries)
Builds a new query which combines the queries in given order.The resulting inventory may contain slots multiple times.
- Parameters:
queries
- The queries to combine- Returns:
- This builder
-
build
Query build()
Builds the composite query.- Specified by:
build
in interfaceBuildable.Builder<Query>
- Returns:
- The new composity query.
-
-