Created
June 8, 2013 12:35
This file contains 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
public abstract class MessageBuilder<M> { | |
private String name; | |
private String id; | |
public abstract M build(); | |
String getId() { | |
return id; | |
} | |
String getName() { | |
return name; | |
} | |
public MessageBuilder<M> withId(final String id) { | |
this.id = id; | |
return this; | |
} | |
public MessageBuilder<M> withName(final String name) { | |
this.name = name; | |
return this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment