Class Subprocess.Builder<B extends Subprocess.Builder<B>>

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

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

      public B setArgv(String[] argv)
      Argument vector.
      Parameters:
      argv - the value for the argv property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.40
    • setFlags

      public B setFlags(Set<SubprocessFlags> flags)
      Subprocess flags.
      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)
      Subprocess flags.
      Parameters:
      flags - the value for the flags property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.40