01: package com.db4o.f1.chapter4;
02:
03: import java.util.*;
04:
05: public class SensorReadout {
06: private Date time;
07: private Car car;
08: private String description;
09:
10: protected SensorReadout(Date time, Car car, String description) {
11: this .time = time;
12: this .car = car;
13: this .description = description;
14: }
15:
16: public Car getCar() {
17: return car;
18: }
19:
20: public Date getTime() {
21: return time;
22: }
23:
24: public String getDescription() {
25: return description;
26: }
27:
28: public String toString() {
29: return car + " : " + time + " : " + description;
30: }
31: }
|