Class Choices$

java.lang.Object
csw.params.core.models.Choices$
All Implemented Interfaces:
Serializable

public class Choices$ extends Object implements Serializable
Provides a varargs constructor for Choices
See Also:
  • Field Details

    • MODULE$

      public static final Choices$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • Choices$

      public Choices$()
  • Method Details

    • from

      public Choices from(String... choices)
      Creates Choices from provided String values

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

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

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

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

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

      public Choices from(Set<String> choices)
    • fromChoices

      public 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 Choices fromChoices(Set<Choice> choices)