public static final class BookView.Builder extends Object implements ResettableBuilder<BookView,BookView.Builder>
BookView
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BookView.Builder |
addPage(Text page)
Adds a page to the end of the
BookView . |
BookView.Builder |
addPages(Collection<Text> pages)
Adds multiple pages to the end of the
BookView . |
BookView.Builder |
addPages(Text... pages)
Adds multiple pages to the end of the
BookView . |
BookView.Builder |
author(Text author)
Sets the author of the
BookView . |
BookView |
build()
Creates a new
BookView from the current state of this
builder. |
BookView.Builder |
clearPages()
Removes all pages from the
BookView . |
BookView.Builder |
from(BookView value)
Resets this builder to the values of the given built object.
|
BookView.Builder |
insertPage(int i,
Text page)
Inserts a page at the specified index of the
BookView . |
BookView.Builder |
insertPages(int i,
Collection<Text> pages)
Inserts multiple pages at the specified index of the
BookView . |
BookView.Builder |
insertPages(int i,
Text... pages)
Inserts multiple pages at the specified index of the
BookView . |
BookView.Builder |
removePage(int i)
Removes the page at the specified index of the
BookView . |
BookView.Builder |
removePage(Text page)
Removes a page from the
BookView . |
BookView.Builder |
removePages(Collection<Text> pages)
Removes multiple pages from the
BookView . |
BookView.Builder |
removePages(Text... pages)
Removes multiple pages from the
BookView . |
BookView.Builder |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
BookView.Builder |
title(Text title)
Sets the title of the
BookView . |
public BookView.Builder title(Text title)
BookView
.title
- Title of BookViewpublic BookView.Builder author(Text author)
BookView
.author
- Author of BookViewpublic BookView.Builder addPage(Text page)
BookView
.page
- Page to addpublic BookView.Builder addPages(Collection<Text> pages)
BookView
.pages
- Pages to addpublic BookView.Builder addPages(Text... pages)
BookView
.pages
- Pages to addpublic BookView.Builder insertPage(int i, Text page)
BookView
.i
- Index to insert page atpage
- Page to insertpublic BookView.Builder insertPages(int i, Collection<Text> pages)
BookView
.i
- Index to insert pages atpages
- Pages to insertpublic BookView.Builder insertPages(int i, Text... pages)
BookView
.i
- Index to insert pages atpages
- Pages to insertpublic BookView.Builder removePage(Text page)
BookView
.page
- Page to removepublic BookView.Builder removePage(int i)
BookView
.i
- Index of page to removepublic BookView.Builder removePages(Collection<Text> pages)
BookView
.pages
- Pages to removepublic BookView.Builder removePages(Text... pages)
BookView
.pages
- Pages to removepublic BookView.Builder clearPages()
BookView
.public BookView build()
BookView
from the current state of this
builder.public BookView.Builder from(BookView value)
ResettableBuilder
from
in interface ResettableBuilder<BookView,BookView.Builder>
value
- The built objectpublic BookView.Builder reset()
ResettableBuilder
reset
in interface ResettableBuilder<BookView,BookView.Builder>