A factory method that produces Constant instances.
A factory method that produces Constant instances.
Notice that not any value can be passed to a constant: it must be either a primitive, a String, a
type or a symbol.
See the Constant class for more information.
An extractor that enables writing pattern matches against the Constant class.
An extractor class to create and pattern match with syntax
Constant(value)wherevalueis the Scala value of the constant.