Class AndBuilder<P>

Object
AndBuilder<P>
All Implemented Interfaces:
Builder<And>

public class AndBuilder<P> extends Object implements Builder<And>
FilterBuilder acting as a simple wrapper around an Expression.
  • Field Details

  • Constructor Details

    • AndBuilder

      public AndBuilder()
    • AndBuilder

      public AndBuilder(P parent)
  • Method Details

    • build

      public And build()
      Build an And filter
      Specified by:
      build in interface Builder<P>
      Returns:
      Created object may be null if unset()
    • fid

      public AndBuilder<P> fid(String fid)
    • and

      public AndBuilder<P> and(Filter filter)
    • fid

      public AndBuilder<P> fid(List<String> fids)
    • end

      public P end()
    • reset

      public AndBuilder<P> reset()
      Description copied from interface: Builder
      Configure the Builder to produce a default result.
      Specified by:
      reset in interface Builder<P>
      Returns:
      Builder configured to produce a default result.
    • reset

      public AndBuilder<P> reset(And filter)
      Description copied from interface: Builder
      Configure the Builder to produce a copy of the provided original.
      Specified by:
      reset in interface Builder<P>
      Parameters:
      filter - Original, if null this will behave the same as unset()
      Returns:
      Builder configured to produce the provided original
    • unset

      public AndBuilder<P> unset()
      Description copied from interface: Builder
      Configure the Builder to produce null.

      This method allows a Builder to be used as a placeholder; in its unset state the build() method will produce null. If any of the builder methods are used the builder will produce a result.

      Specified by:
      unset in interface Builder<P>
      Returns:
      Builder configured to build null