-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
28 lines (22 loc) · 768 Bytes
/
test.java
File metadata and controls
28 lines (22 loc) · 768 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
package test;
import java.text.ParseException;
import java.util.Arrays;
/**
* @author Alterovych Ilya
* Date: 01.03.14
*/
public class Test {
public static void main(String[] args) throws ParseException {
TaskAttemptType[] types = TaskAttemptType.values();
System.out.println(Arrays.toString(types));
System.out.println(TaskAttemptType.valueOf("ATT1").name());
System.out.println();
for (TaskAttemptType type : types){
System.out.println(type.ordinal());
System.out.println(type.name());
System.out.println(type.toString());
System.out.println(type.getAttName());
System.out.println(type.getSecondName() + " " + type.toString());
}
}
}