fluid-stdlib
0.14.0
common
fluid-stdlib
/
io.fluidsonic.stdlib
/
Maybe
Maybe
class
Maybe
<
out
Value
>
Members
Members & Extensions
Types
Companion
Link copied to clipboard
object
Companion
Functions
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Link copied to clipboard
inline
fun
get
(
)
:
Value
get
Or
Else
Link copied to clipboard
inline
fun
<
Value
>
Maybe
<
Value
>
.
getOrElse
(
default
:
(
)
->
Value
)
:
Value
get
Or
Null
Link copied to clipboard
inline
fun
getOrNull
(
)
:
Value
?
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
has
Value
Link copied to clipboard
inline
fun
hasValue
(
)
:
Boolean
is
Nothing
Link copied to clipboard
inline
fun
isNothing
(
)
:
Boolean
map
Link copied to clipboard
inline
fun
<
TransformedValue
>
map
(
mapping
:
(
Value
)
->
TransformedValue
)
:
Maybe
<
TransformedValue
>
map
If
Not
Null
Link copied to clipboard
inline
fun
<
Value
:
Any
,
TransformedValue
>
Maybe
<
Value
?
>
.
mapIfNotNull
(
mapping
:
(
Value
)
->
TransformedValue
?
)
:
Maybe
<
TransformedValue
?
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String