Package org.gnome.gio
Class UnixSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.SocketAddress.Builder<B>
org.gnome.gio.UnixSocketAddress.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
UnixSocketAddress
public static class UnixSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>
extends SocketAddress.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theUnixSocketAddress
object.setAbstract
(boolean abstract_) Deprecated.setAddressType
(UnixSocketAddressType addressType) The type of Unix socket address.Unix socket path.setPathAsArray
(byte[] pathAsArray) Unix socket path, as a byte array.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theUnixSocketAddress
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toUnixSocketAddress
.- Overrides:
build
in classSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>
- Returns:
- a new instance of
UnixSocketAddress
with the properties that were set in the Builder object.
-
setAbstract
Deprecated.Whether or not this is an abstract address- Parameters:
abstract_
- the value for theabstract
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAddressType
The type of Unix socket address.- Parameters:
addressType
- the value for theaddress-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPath
-
setPathAsArray
Unix socket path, as a byte array.- Parameters:
pathAsArray
- the value for thepath-as-array
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-