scala.util.Properties
Loads library.properties
from the jar.
This is the default text encoding, overridden (unreliably) with JAVA_OPTS="-Dfile.encoding=Foo"
This is the default text encoding, overridden (unreliably) with JAVA_OPTS="-Dfile.encoding=Foo"
Compares the given specification version to the major version of the platform.
Compares the given specification version to the major version of the platform.
Value parametersa specification major version number
Compares the given specification version to the specification version of the platform.
Compares the given specification version to the specification version of the platform.
Value parametersa specification version number (legacy forms acceptable)
true
if the specification version of the current runtime is equal to or higher than the version denoted by the given string.
// In this example, the runtime's Java specification is assumed to be at version 8.
isJavaAtLeast("1.8") // true
isJavaAtLeast("8") // true
isJavaAtLeast("9") // false
isJavaAtLeast("9.1") // false
isJavaAtLeast("1.9") // throws
The default end of line character.
The default end of line character.
AttributesThis is the encoding to use reading in source files, overridden with -encoding.
This is the encoding to use reading in source files, overridden with -encoding. Note that it uses "prop" i.e. looks in the scala jar, not the system properties.
AttributesThe version of the Scala runtime, or the empty string if unknown.
The version of the Scala runtime, or the empty string if unknown.
Note that the version of the Scala library need not correlate with the version of the Scala compiler used to emit either the library or user code.
For example, Scala 3.0 and 3.1 use the Scala 2.13 library, which is reflected in this version string. For the Dotty version, see dotty.tools.dotc.config.Properties.versionNumberString
.
Scala manifest attributes.
The version of the Scala runtime, if this is a snapshot.
The version of the Scala runtime, if this is a snapshot.
AttributesReturns true
iff the underlying operating system is a Linux distribution.
Returns true
iff the underlying operating system is a Linux distribution.
Returns true
iff the underlying operating system is a version of Apple Mac OSX.
Returns true
iff the underlying operating system is a version of Apple Mac OSX.
Returns true
iff the underlying operating system is a version of Microsoft Windows.
Returns true
iff the underlying operating system is a version of Microsoft Windows.
The name of the properties file
The name of the properties file
AttributesThe version of the Scala runtime, if this is not a snapshot.
The version of the Scala runtime, if this is not a snapshot.
AttributesThe loaded properties
The loaded properties
AttributesA verbose alternative to versionNumberString.
A verbose alternative to versionNumberString.
AttributesRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4