Package com.attribyte.parser.model
Class Author
java.lang.Object
com.attribyte.parser.model.Author
An immutable author.
- Author:
- Matt Hamer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringA description for the author.final StringAn author name for display.final StringThe author email or an empty string if none.final StringThe unique id or an empty string if none.final ImageAn image for the author.final StringThe author link or an empty string if none.final StringThe author name. -
Method Summary
Modifier and TypeMethodDescriptionstatic Author.BuilderCreates a builder populated from an existing author.static Author.BuilderCreates a builder.toString()
-
Field Details
-
id
The unique id or an empty string if none. -
name
The author name. Nevernullor empty. -
email
The author email or an empty string if none. -
link
The author link or an empty string if none. -
displayName
An author name for display. -
description
A description for the author. -
image
An image for the author.
-
-
Method Details
-
builder
Creates a builder.- Parameters:
name- The (required) name for the author.- Returns:
- The builder.
- Throws:
UnsupportedOperationException- If name isnullor empty.
-
builder
Creates a builder populated from an existing author.- Parameters:
author- The author.- Returns:
- The builder.
-
toString
-