ff4k
Toggle table of contents
0.4.0
common
Target filter
common
Switch theme
Search in API
Skip to content
ff4k
ff4k-core
/
com.yonatankarp.ff4k.strategy
/
WeekdayStrategy
Weekday
Strategy
@
Serializable
@
SerialName
(
value
=
"weekday"
)
data
class
WeekdayStrategy
(
val
days
:
Set
<
DayOfWeek
>
,
val
timezone
:
TimeZone
=
TimeZone.UTC
)
:
FlippingStrategy
(
source
)
Active on the given
days
of the week in
timezone
.
Members
Members & Extensions
Constructors
Weekday
Strategy
Link copied to clipboard
constructor
(
days
:
Set
<
DayOfWeek
>
,
timezone
:
TimeZone
=
TimeZone.UTC
)
Properties
days
Link copied to clipboard
val
days
:
Set
<
DayOfWeek
>
timezone
Link copied to clipboard
@
Serializable
(
with
=
TimeZoneSerializer::class
)
val
timezone
:
TimeZone
Functions
and
Link copied to clipboard
infix
fun
FlippingStrategy
.
and
(
other
:
FlippingStrategy
)
:
AndStrategy
evaluate
Link copied to clipboard
open
suspend override
fun
evaluate
(
feature
:
Feature
,
context
:
Map
<
String
,
Any
>
)
:
Boolean
not
Link copied to clipboard
operator
fun
FlippingStrategy
.
not
(
)
:
NotStrategy
or
Link copied to clipboard
infix
fun
FlippingStrategy
.
or
(
other
:
FlippingStrategy
)
:
OrStrategy