-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package tel.schich.javacan; | ||
|
||
import java.time.Instant; | ||
|
||
public class ExtendedResult { | ||
private final CanFrame frame; | ||
|
||
private final Instant timestamp; | ||
|
||
private final int dropCount; | ||
|
||
public ExtendedResult(CanFrame frame, Instant timestamp, int dropCount) { | ||
this.frame = frame; | ||
this.timestamp = timestamp; | ||
this.dropCount = dropCount; | ||
} | ||
|
||
public CanFrame getFrame() { | ||
return frame; | ||
} | ||
|
||
public Instant getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public int getDropCount() { | ||
return dropCount; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters