toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.util
/
NullSafety
Null
Safety
class
NullSafety
Null safety utilities for robot components.
Author
Lucas Bubner, 2023
Since
1.0.0-pre
See also
Exceptions
Members
Functions
assert
Component
Args
Link copied to clipboard
open
fun
assertComponentArgs
(
@
NonNull
componentName
:
String
,
@
NonNull
excludeClassName
:
String
,
@
NonNull
objs
:
Array
<
Any
>
)
:
Boolean
Ensure a component is safe to instantiate by checking for null objects.
assert
Not
Null
Link copied to clipboard
open
fun
assertNotNull
(
@
NonNull
objs
:
Array
<
Any
>
)
:
Boolean
open
fun
assertNotNull
(
@
NonNull
objs
:
List
<
Any
>
)
:
Boolean
Ensure that all objects are not null.