Integrating enum and struct in one method call; fixing minor bugs
[iot2.git] / iotjava / iotrmi / Java / basics / TestClass.java
index 89baf94602f6d9372c4c45f5d24fbcd392cd2a0b..51aed4ca505908fe0e7abec17890015221b113c4 100644 (file)
@@ -380,6 +380,39 @@ public class TestClass implements TestClassInterface {
        }
 
 
+       public Enum[] handleEnumStruct(Enum en[], List<Struct> str, char c) {
+
+               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("Char: " + c);
+
+               return en;
+       }
+
+
+       public Enum[] handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterfaceWithCallBack> _cb) {
+
+               for (CallBackInterfaceWithCallBack cb : _cb) {
+                       cblist.add(cb);
+                       System.out.println("Registering callback objects in list!");
+               }
+
+               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("Char: " + c);
+
+               return en;
+       }
+
+
        // Getters
        public String sumArray(String[] newA) {