Class Choice

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public class Choice
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Represents a single choice

    param: name of the choice

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Choice​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name()  
      static Choice toChoice​(java.lang.String name)
      Create a Choice from given name
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
    • Constructor Detail

      • Choice

        public Choice​(java.lang.String name)
    • Method Detail

      • toChoice

        public static Choice toChoice​(java.lang.String name)
        Create a Choice from given name

        Parameters:
        name - represents the name of the Choice
        Returns:
        an instance of Choice
      • name

        public java.lang.String name()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object