Package org.gnome.gio
Class UnixSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theUnixSocketAddressobject.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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theUnixSocketAddressobject. 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:
buildin classSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>- Returns:
- a new instance of
UnixSocketAddresswith the properties that were set in the Builder object.
-
setAbstract
Deprecated.UseGUnixSocketAddress:address-type, which distinguishes between zero-padded and non-zero-padded abstract addresses.Whether or not this is an abstract address- Parameters:
abstract_- the value for theabstractproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setAddressType
The type of Unix socket address.- Parameters:
addressType- the value for theaddress-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.22
-
setPath
-
setPathAsArray
Unix socket path, as a byte array.- Parameters:
pathAsArray- the value for thepath-as-arrayproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.22
-
GUnixSocketAddress:address-type, which distinguishes between zero-padded and non-zero-padded abstract addresses.