Package csw.params.core.models
Class Choices
java.lang.Object
csw.params.core.models.Choices
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
Represents a set of choices
param: values a Set of Choice
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
A helper method to determine if the provided choice is present in the set of choices this instance holdsstatic Choices
Creates Choices from provided String valuesstatic Choices
static Choices
Creates Choices from provided String valuesstatic Choices
fromChoices
(Choice... choices) Creates Choices from provided valuesstatic Choices
fromChoices
(Set<Choice> choices) static Choices
fromChoices
(scala.collection.immutable.Seq<Choice> choices) Creates Choices from provided valuesjValues()
A Java helper to get all choices this instance holdstoString()
A comma separated string representation of all choices this instance holdsscala.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 Details
-
Choices
-
-
Method Details
-
from
Creates Choices from provided String values- Parameters:
choices
- one or more choices in string format- Returns:
- an instance of Choices
-
fromChoices
Creates Choices from provided values- Parameters:
choices
- one or more choices- Returns:
- an instance of Choices
-
from
Creates Choices from provided String values- Parameters:
choices
- one or more choices in string format- Returns:
- an instance of Choices
-
from
-
fromChoices
Creates Choices from provided values- Parameters:
choices
- one or more choices- Returns:
- an instance of Choices
-
fromChoices
-
values
-
contains
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
A comma separated string representation of all choices this instance holds -
jValues
A Java helper to get all choices this instance holds- Returns:
-