ScalaRunTime
The object ScalaRunTime provides support methods required by the scala runtime. All these methods should be considered outside the API and subject to change or removal without notice.
Attributes
- Graph
-
- Supertypes
- Self type
-
ScalaRunTime.type
Members list
Value members
Concrete methods
Returns the class object representing an unboxed value type, e.g., classOf[int], not classOf[java.lang.Integer]. The compiler rewrites expressions like 5.getClass to come here.
Returns the class object representing an unboxed value type, e.g., classOf[int], not classOf[java.lang.Integer]. The compiler rewrites expressions like 5.getClass to come here.
Attributes
Returns the class object representing an array with element class clazz.
Returns the class object representing an array with element class clazz.
Attributes
Retrieves generic array element.
Retrieves generic array element.
Attributes
Gets generic array length.
Gets generic array length.
Attributes
Updates generic array element.
Updates generic array element.
Attributes
stringOf formatted for use in a repl result.
stringOf formatted for use in a repl result.
Attributes
Given any Scala value, convert it to a String.
Given any Scala value, convert it to a String.
The primary motivation for this method is to provide a means for correctly obtaining a String representation of a value, while avoiding the pitfalls of naively calling toString on said value. In particular, it addresses the fact that (a) toString cannot be called on null and (b) depending on the apparent type of an array, toString may or may not print it in a human-readable form.
Value parameters
- arg
-
the value to stringify
Attributes
- Returns
-
a string representation of arg.
Converts an array to an object array. Needed to deal with vararg arguments of primitive types that are passed to a generic Java vararg parameter T ...
Converts an array to an object array. Needed to deal with vararg arguments of primitive types that are passed to a generic Java vararg parameter T ...
Attributes
A helper for case classes.
A helper for case classes.