]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/FieldType.java
Version 11.2, September 2010
[GpsPrune.git] / tim / prune / data / FieldType.java
index 94ba6861f3055988c8664ce8fb58e1b11a7ef0c3..a92748ae94b12f2767c9a121ec51b9ba491372fe 100644 (file)
@@ -6,21 +6,29 @@ package tim.prune.data;
  */
 public class FieldType
 {
-       private int _id = 0;
+       private char _id = 0;
 
-       public static final FieldType NONE =  new FieldType(0);
-       public static final FieldType INT =   new FieldType(1);
-       public static final FieldType BOOL =  new FieldType(2);
-       public static final FieldType COORD = new FieldType(3);
-       public static final FieldType TIME =  new FieldType(4);
+       public static final FieldType NONE =  new FieldType('0');
+       public static final FieldType INT =   new FieldType('1');
+       public static final FieldType BOOL =  new FieldType('2');
+       public static final FieldType COORD = new FieldType('3');
+       public static final FieldType TIME =  new FieldType('4');
 
 
        /**
         * Private constructor
         * @param inId identifier
         */
-       private FieldType(int inId)
+       private FieldType(char inId)
        {
                _id = inId;
        }
+
+       /**
+        * Method only needed to avoid compiler warnings
+        * @return id
+        */
+       protected char getId() {
+               return _id;
+       }
 }