Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## book.ex6.model
Class Publisher

    java.lang.Object
      book.ex6.model.Publisher

    public class Publisher

extends java.lang.Object

Field Summary
`private java.util.Set<Book>` | `books`
`private java.lang.Long` | `id`
`private java.lang.String` | `name`

Constructor Summary
`Publisher()`
`Publisher(java.lang.String name)`

Method Summary
`Publisher` | `addBook(Book book)`
`java.util.Set<Book>` | `getBooks()`
`java.lang.Long` | `getId()`
`java.lang.String` | `getName()`
`void` | `setBooks(java.util.Set<Book> books)`
`void` | `setId(java.lang.Long id)`
`void` | `setName(java.lang.String name)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### id

    private java.lang.Long id

### name

    private java.lang.String name

### books

    private java.util.Set<Book> books

Constructor Detail

### Publisher

    public Publisher()

### Publisher

    public Publisher(java.lang.String name)

Method Detail

### getId

    public java.lang.Long getId()

### setId

    public void setId(java.lang.Long id)

### getName

    public java.lang.String getName()

### setName

    public void setName(java.lang.String name)

### getBooks

    public java.util.Set<Book> getBooks()

### setBooks

    public void setBooks(java.util.Set<Book> books)

### addBook

    public Publisher addBook(Book book)

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD