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.
    • Method Detail

      • createBook

        @Nullable B createBook​(@NonNull M title,
                               @NonNull M author,
                               @NonNull 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
      • openBook

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