| 3 | import java.time.LocalDateTime; |
| 4 | |
| 5 | public class Record { |
| 6 | private String content; |
| 7 | private LocalDateTime timestamp; |
| 8 | |
| 9 | public Record(String content) { |
| 10 | this.content = content; |
| 11 | this.timestamp = LocalDateTime.now(); |
| 12 | } |
| 13 | |
| 14 | public String getContent() { |
| 15 | return content; |
| 16 | } |
| 17 | |
| 18 | public LocalDateTime getTimestamp() { |
| 19 | return timestamp; |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | public String toString() { |
| 24 | return "Record{" + |
| 25 | "content='" + content + '\'' + |
| 26 | ", timestamp=" + timestamp + |
| 27 | '}'; |
| 28 | } |
| 29 | } |
nothing calls this directly
no outgoing calls
no test coverage detected