Skip to content

Instantly share code, notes, and snippets.

@edpichler
Created February 9, 2011 13:12
Show Gist options
  • Save edpichler/818446 to your computer and use it in GitHub Desktop.
Save edpichler/818446 to your computer and use it in GitHub Desktop.
public CompositeObject[] getObjetos(){
CompositeObject[] obj = new CompositeObject[10];
for (int i = 0; i < 10; i++) {
obj[i] = new CompositeObject();
}
return obj;
}
public class CompositeObject{
public Double getDouble(){
return Double.valueOf(System.currentTimeMillis());
}
public String getString(){
return "foo";
}
public void setString(){
//
}
public CompositeObject getObjeto(){
return new CompositeObject();
}
public CompositeObject[] getObjetos(){
return new CompositeObject[]{new CompositeObject(), new CompositeObject()};
}
private OtherComplexType comp = new OtherComplexType();
public OtherComplexType getOtherPart(){
return comp;
}
}
public class OtherComplexType{
public int getValue(){
return 10;
}
public String getString(){
return "foo";
}
public void setString(){
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment