stick
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
stick
stick-core
/
com.zombachu.stick
Package-level
declarations
Types
Functions
Types
Aliasable
Link copied to clipboard
interface
Aliasable
Bridge
Link copied to clipboard
abstract
class
Bridge
<
S
:
Any
>
(
val
platformSenderClass
:
KClass
<
S
>
,
val
parsingFailureHandler
:
ParsingFailureHandler
<
S
>
)
Command
Link copied to clipboard
interface
Command
<
S
>
:
SenderScope
<
S
>
Contextual
Value
Link copied to clipboard
typealias
ContextualValue
<
S
,
T
>
=
ExecutionContext
<
S
>
.
(
)
->
T
Execution
Context
Link copied to clipboard
interface
ExecutionContext
<
S
>
:
SenderScope
<
S
>
Execution
Result
Link copied to clipboard
sealed
interface
ExecutionResult
:
Result
<
Unit
>
Group
Result
Link copied to clipboard
data
class
GroupResult
<
T
:
Any
>
(
val
id
:
TypedIdentifier
<
out
T
>
,
val
value
:
T
)
Parsing
Result
Link copied to clipboard
sealed
interface
ParsingResult
<
T
>
:
Result
<
T
>
Result
Link copied to clipboard
sealed
interface
Result
<
T
>
Sender
Validation
Result
Link copied to clipboard
sealed
interface
SenderValidationResult
:
Result
<
Unit
>
Typed
Identifier
Link copied to clipboard
class
TypedIdentifier
<
T
:
Any
>
(
val
name
:
String
,
val
type
:
KClass
<
T
>
)
Functions
handle
Link copied to clipboard
inline
fun
<
T
,
R
>
Result
<
T
>
.
handle
(
onSuccess
:
(
Result.Success
<
T
>
)
->
R
,
onFailure
:
(
Result.Failure
<
T
>
)
->
R
)
:
R
is
Success
Link copied to clipboard
fun
<
T
>
Result
<
T
>
.
isSuccess
(
)
:
Boolean
lowercase
Link copied to clipboard
fun
Set
<
String
>
.
lowercase
(
)
:
Set
<
String
>
propagate
Error
Link copied to clipboard
inline
fun
<
T2
>
Result
<
*
>
.
propagateError
(
onFailure
:
(
Result.Failure
<
T2
>
)
->
Nothing
)
unsafe
Cast
Link copied to clipboard
fun
<
T2
>
Result.Failure
<
*
>
.
unsafeCast
(
)
:
Result.Failure
<
T2
>
value
Or
Propagate
Error
Link copied to clipboard
inline
fun
<
T
,
T2
>
Result
<
T
>
.
valueOrPropagateError
(
onFailure
:
(
Result.Failure
<
T2
>
)
->
Nothing
)
:
T