Blame view

readline/src/pad/prac1/Command.java 451 Bytes
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
35
36
37
package pad.prac1;

public class Command 
{	
   /*
	* COMMAND DEFINITIONS
    */

	public static final int INSERT_CHAR = 0;
	public static final int DELETE_CHAR = 1;
	public static final int MOVE_CURSOR = 2;

	private int type;
	private int value;

	public Command(int t, int v)
	{
		type = t;
		value = v;
	}

	public Command(int t)
	{
		type = t;
	}

	public int getType()
	{
		return type;
	}

	public int getValue()
	{
		return value;
	}

}