Class TestDBus.Builder<B extends TestDBus.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setFlags(Set<TestDBusFlags> flags)
      GTestDBusFlags specifying the behaviour of the D-Bus session.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.34
    • setFlags

      public B setFlags(TestDBusFlags... flags)
      GTestDBusFlags specifying the behaviour of the D-Bus session.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.34