File: FieldType.java

package info (click to toggle)
gpsprune 10-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,220 kB
  • ctags: 3,013
  • sloc: java: 22,662; sh: 23; makefile: 16; python: 15
file content (34 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
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;
	}
}