package itt.tds.Status;


public final class TaskStatus {
	/** The Constant SUCCESS. */
	public static final int SUCCESS = 1;
	/** The Constant FAILED. */
	public static final int FAILED = 2;
	/**
	 * To Avoid Instantiates a new node state.
	 */
	private TaskStatus() {

	    // Throw an exception if this ever *is* called
	    throw new AssertionError("Instantiating utility class.");
	}
	/**
	 * Returns the value of TaskStatus constant in String.
	 *
	 * @param value the value
	 * @return the string
	 */
	public static String toString(final int value) {
		if (value == 1) {
			return "Success";
		} else if (value == 2) {
			return "Failed";
		}
		return null;
	}
}
