Class InetAddressMask.Builder<B extends InetAddressMask.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setAddress(InetAddress address)
      The base address.
      Parameters:
      address - the value for the address property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.32
    • setLength

      public B setLength(int length)
      The prefix length, in bytes.
      Parameters:
      length - the value for the length property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.32