Created
March 14, 2017 15:37
-
-
Save mikebroberts/9dce3ae621d5a0f98419557eef2ac272 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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