// No argument, an Array of Objects. public Object[] getObjectArray1() { Object[] customTypes = new Object[10]; for (int i = 0; i < customTypes.length; i++) { ServerCustomType sct = new ServerCustomType(); sct.setId(i); customTypes[i] = sct; } return customTypes; }
// No argument, CustomType return. public ServerCustomType getObject2() { ServerCustomType ct = new ServerCustomType(); ct.setId(1); return ct; }