Class SubprocessLauncher.Builder<B extends SubprocessLauncher.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.SubprocessLauncher.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
SubprocessLauncher

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

    • Builder

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

    • build

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

      public B setFlags(Set<SubprocessFlags> flags)
      Gio.SubprocessFlags for launched processes.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.40
    • setFlags

      public B setFlags(SubprocessFlags... flags)
      Gio.SubprocessFlags for launched processes.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.40