OptiGUI
2.2.0-alpha.1
jvm
OptiGUI API
/
opekope2.optigui.filter
/
IFilter
/
Result
Result
abstract
class
Result
<
T
>
(
source
)
Represents a filter result.
Parameters
<T>
The type a
filter
returns
Inheritors
Skip
Mismatch
Match
Members
Constructors
Result
Link copied to clipboard
constructor
(
)
Types
Match
Link copied to clipboard
class
Match
<
T
>
:
IFilter.Result
<
T
>
Represents a matching filter result.
Mismatch
Link copied to clipboard
class
Mismatch
<
T
>
:
IFilter.Result
<
T
>
Represents a mismatching filter result.
Skip
Link copied to clipboard
class
Skip
<
T
>
:
IFilter.Result
<
T
>
Represents a skipping filter result.
Functions
match
Link copied to clipboard
open
fun
<
T
>
match
(
@
NotNull
result
:
@
NotNull
T
)
:
IFilter.Result.Match
<
T
>
Returns an instance of
Match
, with its
result
set to the given result.
mismatch
Link copied to clipboard
open
fun
<
T
>
mismatch
(
)
:
IFilter.Result.Mismatch
<
T
>
Returns an instance of
Mismatch
skip
Link copied to clipboard
open
fun
<
T
>
skip
(
)
:
IFilter.Result.Skip
<
T
>
Returns an instance of
Skip
with
Result
Link copied to clipboard
open
fun
<
TThis
:
IFilter.Result
<
TNewResult
>
?
,
TNewResult
>
withResult
(
@
NotNull
result
:
@
NotNull
TNewResult
)
:
TThis