Class GameLogEntryBuilder


  • public class GameLogEntryBuilder
    extends java.lang.Object
    Builder class for the GameLogEntry.
    • Constructor Detail

      • GameLogEntryBuilder

        public GameLogEntryBuilder()
    • Method Detail

      • setMessage

        public GameLogEntryBuilder setMessage​(java.lang.String message)
        Sets the message for the entry.
        Parameters:
        message - Message to set
        Returns:
        The builder instance, useful for chaining
      • setValidRound

        public GameLogEntryBuilder setValidRound​(boolean valid)
        Sets the validity of the round.
        Parameters:
        valid - Flag telling if valid of not.
        Returns:
        The builder instance, useful for chaining
      • setRoundNumber

        public GameLogEntryBuilder setRoundNumber​(int roundNumber)
        Sets the round number for the entry.
        Parameters:
        roundNumber - Round number to set
        Returns:
        The builder instance, useful for chaining
      • setPlayerNumber

        public GameLogEntryBuilder setPlayerNumber​(int playerNumber)
        Sets the player number for the entry.
        Parameters:
        playerNumber - Player number to set
        Returns:
        The builder instance, useful for chaining