Class RoundResult


  • public class RoundResult
    extends java.lang.Object
    POJO class representing the result of a round.
    • Constructor Summary

      Constructors 
      Constructor Description
      RoundResult​(java.lang.String message, boolean valid)
      Constructor for a round result taking a message and a flag if the round was valid.
      RoundResult​(java.lang.String playerName, java.lang.String message, boolean valid)
      Constructor for a round result taking a player, a message and a flag if the round was valid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the message for this round.
      java.lang.String getPlayerName()
      Returns the name of the player for this round.
      boolean isValid()
      Returns if the round was valid or not.
      java.lang.String toString()
      toString overload returning Result of Round: <Message>.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RoundResult

        public RoundResult​(java.lang.String message,
                           boolean valid)
        Constructor for a round result taking a message and a flag if the round was valid.
        Parameters:
        message - Message for the round
        valid - true if round was valid, else false
      • RoundResult

        public RoundResult​(java.lang.String playerName,
                           java.lang.String message,
                           boolean valid)
        Constructor for a round result taking a player, a message and a flag if the round was valid.
        Parameters:
        playerName - Name of the player of the round
        message - Message for the round
        valid - true if round was valid, else false
    • Method Detail

      • getPlayerName

        public java.lang.String getPlayerName()
        Returns the name of the player for this round.
        Returns:
        Possibly null player name
      • getMessage

        public java.lang.String getMessage()
        Returns the message for this round.
        Returns:
        Possibly null message
      • isValid

        public boolean isValid()
        Returns if the round was valid or not.
        Returns:
        true if round was valid, else false
      • toString

        public java.lang.String toString()
        toString overload returning Result of Round: <Message>.
        Overrides:
        toString in class java.lang.Object