View Javadoc
1   package com.github.davidmoten.geo.mem;
2   
3   import com.google.common.base.Optional;
4   
5   public class Info<T, R> {
6   
7       private final double lat;
8       private final double lon;
9       private final long time;
10      private final T value;
11      private final Optional<R> id;
12  
13      public Info(double lat, double lon, long time, T value, Optional<R> id) {
14          this.lat = lat;
15          this.lon = lon;
16          this.time = time;
17          this.value = value;
18          this.id = id;
19      }
20  
21      public Optional<R> id() {
22          return id;
23      }
24  
25      public double lat() {
26          return lat;
27      }
28  
29      public double lon() {
30          return lon;
31      }
32  
33      public long time() {
34          return time;
35      }
36  
37      public T value() {
38          return value;
39      }
40  
41      @Override
42      public String toString() {
43          return "Info [lat=" + lat + ", lon=" + lon + ", time=" + time
44                  + ", value=" + value + ", id=" + id + "]";
45      }
46  
47  }