Class DirectoryList.Builder<B extends DirectoryList.Builder<B>>

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

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

      public B setAttributes(String attributes)
      The attributes to query.
      Parameters:
      attributes - the value for the attributes property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFile

      public B setFile(File file)
      File to query.
      Parameters:
      file - the value for the file property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setIoPriority

      public B setIoPriority(int ioPriority)
      Priority used when loading.
      Parameters:
      ioPriority - the value for the io-priority property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMonitored

      public B setMonitored(boolean monitored)
      true if the directory is monitored for changed.
      Parameters:
      monitored - the value for the monitored property
      Returns:
      the Builder instance is returned, to allow method chaining