- /**
- * {@link PostReplyBuilder} implementation that creates
- * {@link MemoryPostReply} objects.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
- */
- private class MemoryPostReplyBuilder extends AbstractPostReplyBuilder {
-
- /**
- * {@inheritDocs}
- */
- @Override
- public PostReply build() throws IllegalStateException {
- validate();
-
- PostReply postReply = new MemoryPostReply(MemoryDatabase.this, soneProvider, randomId ? UUID.randomUUID().toString() : id, senderId, currentTime ? System.currentTimeMillis() : time, text, postId);
- postReply.setKnown(isPostReplyKnown(postReply));
- return postReply;
- }
-
- }
-