aboutsummaryrefslogtreecommitdiff
path: root/libraries/common-1/ExitCode.java
blob: 1c16f6712aa0504557f749b8fe4bd31b6d059868 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cbt;
/*
public class ExitCode{
	public int integer;
  public ExitCode(int integer){
    this.integer = integer;
  }
  public static ExitCode apply(int integer){
    return new ExitCode( integer );
  }
  public static ExitCode Success = new ExitCode(0);
  public static ExitCode Failure = new ExitCode(1);

  @Override
  public boolean equals(Object other){
    return (other instanceof ExitCode) && ((ExitCode) other).integer == integer;
  }
  @Override
  public int hashCode(){
    return integer;
  }
}

*/