1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
package tim.prune.data;
/**
* Class to represent a type of field,
* for example coordinate or integer
*/
public class FieldType
{
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');
/**
* Private constructor
* @param inId identifier
*/
private FieldType(char inId)
{
_id = inId;
}
/**
* Method only needed to avoid compiler warnings
* @return id
*/
protected char getId() {
return _id;
}
}
|