Person.Builder

public class Person.Builder


Builder for the immutable Person class.

Summary

Public constructors

Creates a new, empty Builder.

Public methods

@NonNull Person

Creates and returns the Person this builder represents.

@NonNull Person.Builder
setBot(boolean bot)

Sets whether or not this Person represents a machine rather than a human.

@NonNull Person.Builder

Set an icon for this Person.

@NonNull Person.Builder
setImportant(boolean important)

Sets whether this is an important person.

@NonNull Person.Builder

Set a unique identifier for this Person.

@NonNull Person.Builder

Give this Person a name to use for display.

@NonNull Person.Builder

Set a URI for this Person which can be any of the following:

Public constructors

Builder

public Builder()

Creates a new, empty Builder.

Public methods

build

public @NonNull Person build()

Creates and returns the Person this builder represents.

setBot

public @NonNull Person.Builder setBot(boolean bot)

Sets whether or not this Person represents a machine rather than a human. This is used primarily for testing and automated tooling.

setIcon

public @NonNull Person.Builder