Package org.gnome.gio
Class InetSocketAddress.Builder<B extends InetSocketAddress.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.InetSocketAddress.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
ProxyAddress.Builder
- Enclosing class:
InetSocketAddress
public static class InetSocketAddress.Builder<B extends InetSocketAddress.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 theInetSocketAddressobject.setAddress(InetAddress address) The address.setFlowinfo(int flowinfo) Thesin6_flowinfofield, for IPv6 addresses.setPort(int port) The port.setScopeId(int scopeId) Thesin6_scope_idfield, for IPv6 addresses.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 theInetSocketAddressobject. 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 toInetSocketAddress.- Overrides:
buildin classSocketAddress.Builder<B extends InetSocketAddress.Builder<B>>- Returns:
- a new instance of
InetSocketAddresswith the properties that were set in the Builder object.
-
setAddress
The address.- Parameters:
address- the value for theaddressproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.22
-
setFlowinfo
Thesin6_flowinfofield, for IPv6 addresses.If unset this property is inherited from
Gio.InetSocketAddress:address.- Parameters:
flowinfo- the value for theflowinfoproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.32
-
setPort
The port.- Parameters:
port- the value for theportproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.22
-
setScopeId
Thesin6_scope_idfield, for IPv6 addresses.If unset this property is inherited from
Gio.InetSocketAddress:address.- Parameters:
scopeId- the value for thescope-idproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.32
-