Class Dice


  • public class Dice
    extends java.lang.Object
    This object represents an animated emoji that displays a random value. Dice
    Since:
    1.0.0
    Author:
    Sergio del Amo
    • Constructor Summary

      Constructors 
      Constructor Description
      Dice()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEmoji()  
      java.lang.Integer getValue()  
      void setEmoji​(java.lang.String emoji)  
      void setValue​(java.lang.Integer value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Dice

        public Dice()
    • Method Detail

      • getEmoji

        @NonNull
        public java.lang.String getEmoji()
        Returns:
        Emoji on which the dice throw animation is based.
      • setEmoji

        public void setEmoji​(@NonNull
                             java.lang.String emoji)
        Parameters:
        emoji - Emoji on which the dice throw animation is based.
      • getValue

        @NonNull
        public java.lang.Integer getValue()
        Returns:
        Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.
      • setValue

        public void setValue​(@NonNull
                             java.lang.Integer value)
        Parameters:
        value - Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.