Class CommentBuilder

  • All Implemented Interfaces:
    io.vertigo.core.lang.Builder<Comment>

    public final class CommentBuilder
    extends Object
    implements io.vertigo.core.lang.Builder<Comment>
    Author:
    pchretien
    • Method Detail

      • withAuthor

        public CommentBuilder withAuthor​(UID<Account> author)
        Parameters:
        author - Author account
        Returns:
        this builder
      • withUuid

        public CommentBuilder withUuid​(UUID uuid)
        Parameters:
        uuid - UUID identifier
        Returns:
        this builder
      • withMsg

        public CommentBuilder withMsg​(String msg)
        Parameters:
        msg - Comment
        Returns:
        this builder
      • withCreationDate

        public CommentBuilder withCreationDate​(Instant creationInstant)
        Parameters:
        creationDate - create date time
        Returns:
        this builder
      • withLastModified

        public CommentBuilder withLastModified​(Instant lastModified)
        Parameters:
        lastModified - Last modify date time
        Returns:
        this builder
      • build

        public Comment build()
        Specified by:
        build in interface io.vertigo.core.lang.Builder<Comment>