Class Breakpoint.Builder<B extends Breakpoint.Builder<B>>

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

public static class Breakpoint.Builder<B extends Breakpoint.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.4
  • Constructor Details

    • Builder

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

    • build

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

      public B setCondition(BreakpointCondition condition)
      The breakpoint's condition.
      Parameters:
      condition - the value for the condition property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.4
    • onApply

      public B onApply(Breakpoint.ApplyCallback handler)

      Emitted when the breakpoint is applied.

      This signal is emitted after the setters have been applied.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.4
      See Also:
    • onUnapply

      public B onUnapply(Breakpoint.UnapplyCallback handler)

      Emitted when the breakpoint is unapplied.

      This signal is emitted before resetting the setter values.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.4
      See Also: