Class BoolFilter.Builder<B extends BoolFilter.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
BoolFilter

public static class BoolFilter.Builder<B extends BoolFilter.Builder<B>> extends Filter.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public BoolFilter build()
      Finish building the BoolFilter object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to BoolFilter.
      Overrides:
      build in class Filter.Builder<B extends BoolFilter.Builder<B>>
      Returns:
      a new instance of BoolFilter with the properties that were set in the Builder object.
    • setExpression

      public B setExpression(Expression expression)
      The boolean expression to evaluate on each item.
      Parameters:
      expression - the value for the expression property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setInvert

      public B setInvert(boolean invert)
      If the expression result should be inverted.
      Parameters:
      invert - the value for the invert property
      Returns:
      the Builder instance is returned, to allow method chaining