File: CompressionMethodType.java

package info (click to toggle)
gpsprune 26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,824 kB
  • sloc: java: 52,154; sh: 25; makefile: 21; python: 15
file content (34 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
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.function.compress;

/** Enumerates the available compression methods and their keys */
public enum CompressionMethodType
{
	NONE(0, ""),
	DUPLICATES(1, "DUP"),
	NEARBY_WITH_FACTOR(2, "NEF"),
	WACKY_POINTS(3, "WAC"),
	SINGLETONS(4, "SIN"),
	DOUGLAS_PEUCKER(5, "DPC"),
	NEARBY_WITH_DISTANCE(6, "NED"),
	TIME_DIFFERENCE(7, "TSA"),
	TOO_SLOW(8, "SLO"),
	TOO_FAST(9, "FAS"),
	SKI_LIFTS(10, "SKI");

	private final int _index;
	private final String _key;

	/** Constructor */
	CompressionMethodType(int inIndex, String inKey) {
		_index = inIndex;
		_key = inKey + ":";
	}

	public int getIndex() {
		return _index;
	}

	public String getKey() {
		return _key;
	}
}