toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-semver
/
semver
/
Comparator
Comparator
external
class
Comparator
(
source
)
Members
Constructors
Comparator
Link copied to clipboard
constructor
(
comp
:
String
)
constructor
(
comp
:
String
,
optionsOrLoose
:
Boolean
=
definedExternally
)
constructor
(
comp
:
String
,
optionsOrLoose
:
Options
=
definedExternally
)
constructor
(
comp
:
Comparator
)
constructor
(
comp
:
Comparator
,
optionsOrLoose
:
Boolean
=
definedExternally
)
constructor
(
comp
:
Comparator
,
optionsOrLoose
:
Options
=
definedExternally
)
Properties
loose
Link copied to clipboard
var
loose
:
Boolean
operator
Link copied to clipboard
var
operator
:
ComparatorOperator
options
Link copied to clipboard
var
options
:
Options
semver
Link copied to clipboard
var
semver
:
SemVer
value
Link copied to clipboard
var
value
:
String
Functions
intersects
Link copied to clipboard
fun
intersects
(
comp
:
Comparator
)
:
Boolean
fun
intersects
(
comp
:
Comparator
,
optionsOrLoose
:
Boolean
=
definedExternally
)
:
Boolean
fun
intersects
(
comp
:
Comparator
,
optionsOrLoose
:
Options
=
definedExternally
)
:
Boolean
parse
Link copied to clipboard
fun
parse
(
comp
:
String
)
test
Link copied to clipboard
fun
test
(
version
:
String
)
:
Boolean
fun
test
(
version
:
SemVer
)
:
Boolean