Interface Facet.Book<V,​M,​B>

  • Type Parameters:
    V - a viewer type
    M - a message type
    B - a book type
    All Superinterfaces:
    Facet<V>, Facet.Message<V,​M>
    Enclosing interface:
    Facet<V>

    public static interface Facet.Book<V,​M,​B>
    extends Facet.Message<V,​M>
    A facet that opens a book.
    Since:
    4.0.0
    • Method Detail

      • createBook

        @Nullable
        B createBook​(@NotNull
                     @NotNull java.lang.String title,
                     @NotNull
                     @NotNull java.lang.String author,
                     @NotNull
                     @NotNull java.lang.Iterable<M> pages)
        Creates a book.
        Parameters:
        title - a title
        author - an author
        pages - a collection of pages
        Returns:
        a book or null
        Since:
        4.0.0
      • openBook

        void openBook​(@NotNull
                      V viewer,
                      @NotNull
                      B book)
        Opens a book.
        Parameters:
        viewer - a viewer
        book - a book
        Since:
        4.0.0