import java.util.Set;
import java.util.List;
import java.util.ArrayList;
+import java.util.Arrays;
public class TestClass implements TestClassInterface {
}
+ public Enum handleEnumComplex(Enum en, int i, char c) {
+
+ System.out.println("Enum: " + en);
+ System.out.println("Integer: " + i);
+ System.out.println("Char: " + c);
+
+ return en;
+ }
+
+
+ public Enum[] handleEnumComplex2(Enum[] en, int in, char c) {
+
+ for (Enum e : en) {
+ System.out.println("Enum: " + e);
+ }
+ System.out.println("Integer: " + in);
+ System.out.println("Char: " + c);
+
+ return en;
+ }
+
+
// Struct
public Struct handleStruct(Struct str) {
}
+ public Struct handleStructComplex(int in, char c, Struct str) {
+
+ System.out.println("Name: " + str.name);
+ System.out.println("Value: " + str.value);
+ System.out.println("Year: " + str.year);
+
+ System.out.println("Integer: " + in);
+ System.out.println("Char: " + c);
+
+ Struct test = new Struct();
+ test.name = "Anonymous";
+ test.value = 1.33f;
+ test.year = 2016;
+
+ str = test;
+
+ return str;
+ }
+
+
+ public List<Struct> handleStructComplex2(int in, char c, Struct str[]) {
+
+ for (Struct st : str) {
+ System.out.println("Name: " + st.name);
+ System.out.println("Value: " + st.value);
+ System.out.println("Year: " + st.year);
+ }
+
+ System.out.println("Integer: " + in);
+ System.out.println("Char: " + c);
+
+ return new ArrayList<Struct>(Arrays.asList(str));
+ }
+
+
// Getters
public String sumArray(String[] newA) {