Class Choices

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

    public class Choices
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Represents a set of choices

    param: values a Set of Choice

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Choices​(scala.collection.immutable.Set<Choice> values)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(Choice choice)
      A helper method to determine if the provided choice is present in the set of choices this instance holds
      static Choices from​(java.lang.String... choices)
      Creates Choices from provided String values
      static Choices from​(java.util.Set<java.lang.String> choices)  
      static Choices from​(scala.collection.immutable.Seq<java.lang.String> choices)
      Creates Choices from provided String values
      static Choices fromChoices​(Choice... choices)
      Creates Choices from provided values
      static Choices fromChoices​(java.util.Set<Choice> choices)  
      static Choices fromChoices​(scala.collection.immutable.Seq<Choice> choices)
      Creates Choices from provided values
      java.util.List<Choice> jValues()
      A Java helper to get all choices this instance holds
      java.lang.String toString()
      A comma separated string representation of all choices this instance holds
      scala.collection.immutable.Set<Choice> values()  
      • 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

      • Choices

        public Choices​(scala.collection.immutable.Set<Choice> values)
    • Method Detail

      • from

        public static Choices from​(java.lang.String... choices)
        Creates Choices from provided String values

        Parameters:
        choices - one or more choices in string format
        Returns:
        an instance of Choices
      • fromChoices

        public static Choices fromChoices​(Choice... choices)
        Creates Choices from provided values

        Parameters:
        choices - one or more choices
        Returns:
        an instance of Choices
      • from

        public static Choices from​(scala.collection.immutable.Seq<java.lang.String> choices)
        Creates Choices from provided String values

        Parameters:
        choices - one or more choices in string format
        Returns:
        an instance of Choices
      • from

        public static Choices from​(java.util.Set<java.lang.String> choices)
      • fromChoices

        public static Choices fromChoices​(scala.collection.immutable.Seq<Choice> choices)
        Creates Choices from provided values

        Parameters:
        choices - one or more choices
        Returns:
        an instance of Choices
      • fromChoices

        public static Choices fromChoices​(java.util.Set<Choice> choices)
      • values

        public scala.collection.immutable.Set<Choice> values()
      • contains

        public boolean contains​(Choice choice)
        A helper method to determine if the provided choice is present in the set of choices this instance holds

        Parameters:
        choice - the choice value to find
        Returns:
        a Boolean indicating whether the given choice is present or not
      • toString

        public java.lang.String toString()
        A comma separated string representation of all choices this instance holds
        Overrides:
        toString in class java.lang.Object
        Returns:
        (undocumented)
      • jValues

        public java.util.List<Choice> jValues()
        A Java helper to get all choices this instance holds

        Returns: