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.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
An extractor class to create and pattern match with syntax
Constant(value)
wherevalue
is the Scala value of the constant.