public class DefaultBuilder extends Object implements Client.Builder
Client.Builder
.Client.Builder.Bind, Client.Builder.Listeners, Client.Builder.Management, Client.Builder.Proxy, Client.Builder.Server, Client.Builder.WebIrc
Constructor and Description |
---|
DefaultBuilder() |
Modifier and Type | Method and Description |
---|---|
@NonNull Client.Builder.Bind |
bind()
Returns bind builder methods.
|
@NonNull Client |
build()
Clientmaker, clientmaker, make me a client!
|
@NonNull Client |
buildAndConnect()
Clientmaker, clientmaker, make me a client, build me the client,
begin connection!
|
@NonNull Client.Builder.Listeners |
listeners()
Returns listener builder methods.
|
@NonNull Client.Builder.Management |
management()
Returns the management-related builder methods.
|
@NonNull DefaultBuilder |
name(@NonNull String name)
Names the client, for internal labeling.
|
@NonNull DefaultBuilder |
nick(@NonNull String nick)
Sets the client's nick.
|
@NonNull Client.Builder.Proxy |
proxy()
Returns proxy builder methods.
|
@NonNull DefaultBuilder |
realName(@NonNull String name)
Sets the realname the client uses.
|
@NonNull Client.Builder.Server |
server()
Returns server builder methods.
|
@NonNull String |
toString() |
@NonNull DefaultBuilder |
user(@NonNull String user)
Sets the user the client connects as.
|
Client.Builder.WebIrc.Password |
webIrc()
Returns webirc builder methods.
|
public @NonNull DefaultBuilder name(@NonNull String name)
Client.Builder
name
in interface Client.Builder
name
- a name to label the client internallypublic @NonNull DefaultBuilder nick(@NonNull String nick)
Client.Builder
By default, the nick is Kitteh.
nick
in interface Client.Builder
nick
- nick for the client to usepublic @NonNull DefaultBuilder user(@NonNull String user)
Client.Builder
By default, the user is Kitteh.
user
in interface Client.Builder
user
- user to connect aspublic @NonNull DefaultBuilder realName(@NonNull String name)
Client.Builder
By default, the realname is Kitteh.
realName
in interface Client.Builder
name
- realname to usepublic @NonNull Client.Builder.Bind bind()
Client.Builder
bind
in interface Client.Builder
public @NonNull Client.Builder.Server server()
Client.Builder
server
in interface Client.Builder
public @NonNull Client.Builder.Listeners listeners()
Client.Builder
listeners
in interface Client.Builder
public @NonNull Client.Builder.Proxy proxy()
Client.Builder
proxy
in interface Client.Builder
public Client.Builder.WebIrc.Password webIrc()
Client.Builder
webIrc
in interface Client.Builder
public @NonNull Client.Builder.Management management()
Client.Builder
management
in interface Client.Builder
public @NonNull Client build()
Client.Builder
build
in interface Client.Builder
public @NonNull Client buildAndConnect()
Client.Builder
buildAndConnect
in interface Client.Builder
Copyright © 2013–2021 Kitteh. All rights reserved.