Skip to content

Instantly share code, notes, and snippets.

@mikebroberts
Created March 14, 2017 15:37
Show Gist options
  • Save mikebroberts/9dce3ae621d5a0f98419557eef2ac272 to your computer and use it in GitHub Desktop.
Save mikebroberts/9dce3ae621d5a0f98419557eef2ac272 to your computer and use it in GitHub Desktop.
package io.symphonia;
public class PojoLambda {
public PojoResponse handlerPojo(PojoInput input) {
return new PojoResponse("Input was " + input.getA());
}
public static class PojoInput {
private String a;
public String getA() {
return a;
}
public void setA(String a) {
this.a = a;
}
}
public static class PojoResponse {
private final String b;
PojoResponse(String b) {
this.b = b;
}
public String getB() {
return b;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment