Interface Query.Builder

All Superinterfaces:
AbstractBuilder<Query>, Builder<Query,Query.Builder>, ResettableBuilder<Query,Query.Builder>
Enclosing interface:
Query

public static interface Query.Builder extends Builder<Query,Query.Builder>
  • Method Summary

    Modifier and Type
    Method
    Description
    and(Query... queries)
    Builds a new query which combines the queries in given order.
    Builds the composite query.
    or(Query... queries)
    Builds a new query matching any of the queries.

    Methods inherited from interface org.spongepowered.api.util.Builder

    reset
  • Method Details

    • 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 interface AbstractBuilder<Query>
      Returns:
      The new composity query.