View Javadoc
1   package au.gov.amsa.ais;
2   
3   public class LineAndTime {
4   
5   	private final String line;
6   	private final long time;
7   
8   	public LineAndTime(String line, long time) {
9   		this.line = line;
10  		this.time = time;
11  	}
12  
13  	public String getLine() {
14  		return line;
15  	}
16  
17  	public long getTime() {
18  		return time;
19  	}
20  
21  	@Override
22  	public String toString() {
23  		StringBuilder builder = new StringBuilder();
24  		builder.append("LineAndTime [line=");
25  		builder.append(line);
26  		builder.append(", time=");
27  		builder.append(time);
28  		builder.append("]");
29  		return builder.toString();
30  	}
31  	
32  }