Class BytesIcon.Builder<B extends BytesIcon.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setBytes(byte[] bytes)
      The bytes containing the icon.
      Parameters:
      bytes - the value for the bytes property
      Returns:
      the Builder instance is returned, to allow method chaining