package net.swisstech.swissarmyknife.sys.linux;

/**
 * these are the signals supported by <code>/bin/kill</code> (see /bin/kill --table). The bash built-in with the same name supports a lot more signals.
 * @since 1.1.5
 */
enum Signal {

	HUP(1),
	INT(2),
	QUIT(3),
	ILL(4),
	TRAP(5),
	ABRT(6),
	BUS(7),
	FPE(8),
	KILL(9),
	USR1(10),
	SEGV(11),
	USR2(12),
	PIPE(13),
	ALRM(14),
	TERM(15),
	STKFLT(16),
	CHLD(17),
	CONT(18),
	STOP(19),
	TSTP(20),
	TTIN(21),
	TTOU(22),
	URG(23),
	XCPU(24),
	XFSZ(25),
	VTALRM(26),
	PROF(27),
	WINCH(28),
	POLL(29),
	PWR(30),
	SYS(31);

	private final int num;

	private Signal(int num) {
		this.num = num;
	}

	public int getNum() {
		return num;
	}
}

package net.swisstech.swissarmyknife.sys.linux;

/**
 * these are the signals supported by <code>/bin/kill</code> (see /bin/kill --table). The bash built-in with the same name supports a lot more signals.
 * @since 1.1.5
 */
enum Signal {

	HUP(1),
	INT(2),
	QUIT(3),
	ILL(4),
	TRAP(5),
	ABRT(6),
	BUS(7),
	FPE(8),
	KILL(9),
	USR1(10),
	SEGV(11),
	USR2(12),
	PIPE(13),
	ALRM(14),
	TERM(15),
	STKFLT(16),
	CHLD(17),
	CONT(18),
	STOP(19),
	TSTP(20),
	TTIN(21),
	TTOU(22),
	URG(23),
	XCPU(24),
	XFSZ(25),
	VTALRM(26),
	PROF(27),
	WINCH(28),
	POLL(29),
	PWR(30),
	SYS(31);

	private final int num;

	Signal(int num) {
		this.num = num;
	}

	public int getNum() {
		return num;
	}
}

remove redundant modifier