Class Choice

java.lang.Object
csw.params.core.models.Choice
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

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

param: name of the choice

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Choice(String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static Choice
    Create a Choice from given name
     

    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 Details

    • Choice

      public Choice(String name)
  • Method Details

    • toChoice

      public static Choice toChoice(String name)
      Create a Choice from given name

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

      public String name()
    • toString

      public String toString()
      Overrides:
      toString in class Object