1 package org.opentrafficsim.kpi.sampling;
2
3
4
5
6
7
8
9
10
11
12
13
14 public class SimpleColumn<T> implements Column<T>
15 {
16
17
18 private final String id;
19
20
21 private final String description;
22
23
24 private final Class<T> valueType;
25
26
27
28
29
30
31
32 public SimpleColumn(final String id, final String description, final Class<T> valueType)
33 {
34 this.id = id;
35 this.description = description;
36 this.valueType = valueType;
37 }
38
39
40 @Override
41 public String getId()
42 {
43 return this.id;
44 }
45
46
47 @Override
48 public String getDescription()
49 {
50 return this.description;
51 }
52
53
54 @Override
55 public Class<T> getValueType()
56 {
57 return this.valueType;
58 }
59
60
61 @Override
62 public String toString()
63 {
64 return "SimpleColumn [id=" + id + ", description=" + description + ", valueType=" + valueType + "]";
65 }
66
67 }