case classSomeOpt(id: Option[String] = None, styles: Set[String] = Set()) extends Options with Product with Serializable
Options implementation for non-empty instances.
For creating new instances it is usually more convenient to use the various factory objects.
Example for creating an instance with an id and two styles applied:
val options = Id("myId") + Styles("style1","style2")
Likewise it is also often more convenient to use the corresponding extractors for pattern matching.
Linear Supertypes
Serializable, Serializable, Product, Equals, Options, AnyRef, Any
Options
implementation for non-empty instances.For creating new instances it is usually more convenient to use the various factory objects. Example for creating an instance with an id and two styles applied:
Likewise it is also often more convenient to use the corresponding extractors for pattern matching.