import com.google.common.base.Optional;
/**
- * {@link PostBuilder} implementation that creates {@link PostImpl} objects.
+ * {@link PostBuilder} implementation that creates {@link DefaultPost} objects.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
super(database, soneId);
}
- /** {@inheritDoc} */
@Override
public Post build(Optional<PostCreated> postCreated) {
validate();
- PostImpl post = new PostImpl(database, getId(), senderId, recipientId.orNull(), getTime(), text);
+ DefaultPost post = new DefaultPost(database, getId(), senderId, recipientId.orNull(), getTime(), text);
if (postCreated.isPresent()) {
postCreated.get().postCreated(post);
}