Macrocosm
0.5.2-alpha
jvm
Macrocosm
/
space.maxus.macrocosm.util.general
/
Ensure
Ensure
object
Ensure
(
source
)
A checker object
Members
Types
Annotated
Exception
Link copied to clipboard
data
class
AnnotatedException
(
val
base
:
Exception
?
,
val
additional
:
String
=
""
)
:
MacrocosmThrowable
Functions
is
Equal
Link copied to clipboard
fun
isEqual
(
a
:
Any
?
,
b
:
Any
?
,
message
:
String
=
"Assertion failed"
)
is
False
Link copied to clipboard
fun
isFalse
(
check
:
Boolean
,
message
:
String
=
"Assertion failed"
)
is
Not
Equal
Link copied to clipboard
fun
isNotEqual
(
a
:
Any
?
,
b
:
Any
?
,
message
:
String
=
"Assertion failed"
)
is
Not
Null
Link copied to clipboard
fun
isNotNull
(
any
:
Any
?
,
message
:
String
=
"Assertion failed"
)
is
Null
Link copied to clipboard
fun
isNull
(
any
:
Any
?
,
message
:
String
=
"Assertion failed"
)
is
True
Link copied to clipboard
fun
isTrue
(
check
:
Boolean
,
message
:
String
=
"Assertion failed"
)