MCPcopy Create free account
hub / github.com/SEBV1/idlefish_monitor / Record

Class Record

src/main/java/com/github/entity/Record.java:5–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.time.LocalDateTime;
4
5public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected