Profile


public final class Profile


An object representing a user profile on social media.

Summary

Nested types

public final class Profile.Builder

Builder class for Profile.

Public fields

final Image
final String

Public methods

Optional<Image>

Returns the additional image associated with the profile.

Optional<String>

Returns the additional metadata associated with the profile. e.g. handle

Image

Returns the avatar image associated with the profile.

String

Returns the name associated with the profile.

Public fields

avatar

public final Image avatar

name

public final String name

Public methods

getAdditionalImage

public Optional<ImagegetAdditionalImage()

Returns the additional image associated with the profile.

getAdditionalText

public Optional<StringgetAdditionalText()

Returns the additional metadata associated with the profile. e.g. handle

getAvatar

public Image getAvatar()

Returns the avatar image associated with the profile.

getName

public String getName()

Returns the name associated with the profile.