Class File.Builder<B extends File.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setLocation(File location)
      The location.
      Parameters:
      location - the value for the location property
      Returns:
      the Builder instance is returned, to allow method chaining