3 import java.util.ArrayList;
5 public class TestClass implements TestClassInterface {
12 private String stringC;
13 private List<CallBackInterface> cblist;
26 public TestClass(int _int, float _float, String _string) {
35 public void registerCallback(CallBackInterface _cb) {
38 System.out.println("Registering callback object!");
42 /*public void registerCallback(CallBackInterface[] _cb) {
44 for (CallBackInterface cb : _cb) {
46 System.out.println("Registering callback object!");
51 public int callBack() {
54 for (CallBackInterface cb : cblist) {
55 sum = sum + cb.printInt();
62 public byte getByte(byte in) {
68 public short getShort(short in) {
74 public long getLong(long in) {
80 public float getFloat(float in) {
86 public double getDouble(double in) {
92 public boolean getBoolean(boolean in) {
98 public char getChar(char in) {
105 public byte[] getByteArray(byte[] in) {
111 public short[] getShortArray(short[] in) {
117 public long[] getLongArray(long[] in) {
123 public float[] getFloatArray(float[] in) {
129 public double[] getDoubleArray(double[] in) {
135 public boolean[] getBooleanArray(boolean[] in) {
141 public char[] getCharArray(char[] in) {
148 public List<Byte> getByteList(List<Byte> in) {
154 public List<Short> getShortList(List<Short> in) {
160 public List<Long> getLongList(List<Long> in) {
166 public List<Float> getFloatList(List<Float> in) {
172 public List<Double> getDoubleList(List<Double> in) {
178 public List<Boolean> getBooleanList(List<Boolean> in) {
184 public List<Character> getCharList(List<Character> in) {
197 public void setA(int _int) {
203 public void setB(float _float) {
209 public void setC(String _string) {
216 public String sumArray(String[] newA) {
219 for (String i : newA)
225 public int setAndGetA(int newA) {
232 public int setACAndGetA(String newC, int newA) {