| Modifier and Type | Method and Description |
|---|---|
Topic |
Story.getTopic1() |
Topic |
Story.getTopic2() |
static Topic |
Topic.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Topic[] |
Topic.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.setTopic1(Topic topic1) |
void |
Story.setTopic2(Topic topic2) |
void |
Story.validateTopic1(Topic topic1) |
| Constructor and Description |
|---|
Story(int id,
String title,
String content,
User author,
Date publicationDate,
Type type,
Topic topic1,
Topic topic2,
int numReads) |
Story(String title,
String content,
User author,
Date publicationDate,
Type type,
Topic topic1,
Topic topic2,
int numReads) |
Copyright © 2021. All rights reserved.