]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/data/FieldType.java
94ba6861f3055988c8664ce8fb58e1b11a7ef0c3
[GpsPrune.git] / tim / prune / data / FieldType.java
1 package tim.prune.data;
2
3 /**
4  * Class to represent a type of field,
5  * for example coordinate or integer
6  */
7 public class FieldType
8 {
9         private int _id = 0;
10
11         public static final FieldType NONE =  new FieldType(0);
12         public static final FieldType INT =   new FieldType(1);
13         public static final FieldType BOOL =  new FieldType(2);
14         public static final FieldType COORD = new FieldType(3);
15         public static final FieldType TIME =  new FieldType(4);
16
17
18         /**
19          * Private constructor
20          * @param inId identifier
21          */
22         private FieldType(int inId)
23         {
24                 _id = inId;
25         }
26 }