| Modifier and Type | Method and Description |
|---|---|
Theme |
Story.getTheme1()
Returns the main theme of the story
|
Theme |
Story.getTheme2()
Returns the secondary theme of the story
|
static Theme |
Theme.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Theme[] |
Theme.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Story.setTheme1(Theme theme1)
Sets the main theme of the story.
|
void |
Story.setTheme2(Theme theme2)
Sets the secondary theme of the story.
|
| Constructor and Description |
|---|
Story(Long id,
String title,
String content,
Genre genre,
Theme theme1,
Theme theme2,
Date date,
User author,
boolean published)
Creates a new instance of
Story with id and no views |
Story(String title,
String content,
Genre genre,
Theme theme1,
Theme theme2,
Date date,
User author)
Creates a new instance of
Story |
Copyright © 2022. All rights reserved.