mapbox-maps-android
mapbox-maps-android
/
com.mapbox.bindgen
/
ExpectedFactory
Expected
Factory
class
ExpectedFactory
Expected factory creates value and error expected instances.
Functions
Functions
create
Error
Link copied to clipboard
@
NonNull
open
fun
<
E
,
V
>
createError
(
@
NonNull
error
:
E
)
:
Expected
<
E
,
V
>
Create an expected error.
create
None
Link copied to clipboard
@
NonNull
open
fun
<
E
>
createNone
(
)
:
Expected
<
E
,
None
>
Create a void value.
create
Value
Link copied to clipboard
@
NonNull
open
fun
<
E
,
V
>
createValue
(
@
NonNull
value
:
V
)
:
Expected
<
E
,
V
>
Create an expected value.