public class Fortune extends Object implements Comparable<Fortune>
| Constructor and Description |
|---|
Fortune() |
Fortune(int id,
String message) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Fortune o) |
int |
getId() |
String |
getMessage() |
Fortune |
setId(int id) |
Fortune |
setMessage(String message) |
String |
toString() |
public Fortune()
public Fortune(int id,
String message)
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.