public class Simple{ private final String foo; public Simple( String foo ) { this.foo = foo; } public String getFoo() { return foo; } }