X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FFieldType.java;h=a92748ae94b12f2767c9a121ec51b9ba491372fe;hb=3745d70b1427bb8ac1a085e47cbdc566936784e1;hp=94ba6861f3055988c8664ce8fb58e1b11a7ef0c3;hpb=312fec956e43f5d0a38617da5d0add9c62563e2c;p=GpsPrune.git diff --git a/tim/prune/data/FieldType.java b/tim/prune/data/FieldType.java index 94ba686..a92748a 100644 --- a/tim/prune/data/FieldType.java +++ b/tim/prune/data/FieldType.java @@ -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; + } }