Skip navigation links
A C D F G I L M O P R S T U W 

A

AFFIRMATIVE - Static variable in class com.comuto.flag.model.Flag
 
AffirmativeStrategy - Class in com.comuto.flag.strategy
Strategy that check if one condition is valid
AffirmativeStrategy() - Constructor for class com.comuto.flag.strategy.AffirmativeStrategy
 
ALWAYS_ACTIVE - Static variable in class com.comuto.flag.model.Flag
 
appliesTo(T) - Method in class com.comuto.flag.operators.InsetOperator
 
appliesTo(String) - Method in class com.comuto.flag.operators.ModuloOperator
 
appliesTo(T) - Method in class com.comuto.flag.operators.Operator
This method will check if an operator validate a value Each operator must implement this method
appliesTo(String) - Method in class com.comuto.flag.operators.PercentageOperator
 

C

com.comuto.flag - package com.comuto.flag
 
com.comuto.flag.model - package com.comuto.flag.model
 
com.comuto.flag.operators - package com.comuto.flag.operators
 
com.comuto.flag.parsing - package com.comuto.flag.parsing
 
com.comuto.flag.strategy - package com.comuto.flag.strategy
 
Condition - Class in com.comuto.flag.model
Represent condition to activate the feature toggle
Condition() - Constructor for class com.comuto.flag.model.Condition
 
CONDITIONALLY_ACTIVE - Static variable in class com.comuto.flag.model.Flag
 
CustomJsonDeserializer - Class in com.comuto.flag.parsing
Custom deserializer to indicate to the parser how he can parse the abstract class Operator with the multiple subclasses
CustomJsonDeserializer() - Constructor for class com.comuto.flag.parsing.CustomJsonDeserializer
 

D

deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class com.comuto.flag.parsing.CustomJsonDeserializer
 

F

Flag - Class in com.comuto.flag.model
Represent a Flag (Toggle) A flag has : A Name A list of conditions A status A strategy
Flag(String, List<Condition>, String, String) - Constructor for class com.comuto.flag.model.Flag
 
Flag.ToggleStatus - Annotation Type in com.comuto.flag.model
 
Flag.ToggleStrategy - Annotation Type in com.comuto.flag.model
 
FlagContextInterface<T> - Interface in com.comuto.flag.model
This interface is used to provide to the flaggr a context This context will be used to evaluate if the flag is active or not You context class must implement this interface
Flaggr - Class in com.comuto.flag
Feature flags main entry point.
FLAGGR_SHARED_PREFERENCES_PREFIX - Static variable in class com.comuto.flag.Flaggr
 
FlaggrComponent - Interface in com.comuto.flag
 
FlaggrComponent.Initializer - Class in com.comuto.flag
 
FlaggrManager - Class in com.comuto.flag
Manager to handle strategy call and cache
FlaggrManager() - Constructor for class com.comuto.flag.FlaggrManager
 
FlaggrModule - Class in com.comuto.flag
 
FlaggrModule(Context) - Constructor for class com.comuto.flag.FlaggrModule
 
FlagsCallback - Interface in com.comuto.flag
Callback for loading feature flags.
FlagsLoader - Class in com.comuto.flag
Downloads flags from server.
FlagsLoader(OkHttpClient, Gson) - Constructor for class com.comuto.flag.FlagsLoader
 

G

getConditions() - Method in class com.comuto.flag.model.Flag
 
getFlagContext() - Method in interface com.comuto.flag.model.FlagContextInterface
 
getKey() - Method in class com.comuto.flag.model.Condition
 
getName() - Method in class com.comuto.flag.model.Condition
 
getName() - Method in class com.comuto.flag.model.Flag
 
getOperator() - Method in class com.comuto.flag.model.Condition
 
getStatus() - Method in class com.comuto.flag.model.Flag
 
getStrategy() - Method in class com.comuto.flag.model.Flag
 
getValue(String) - Method in interface com.comuto.flag.model.FlagContextInterface
 

I

INACTIVE - Static variable in class com.comuto.flag.model.Flag
 
inject(Flaggr) - Method in interface com.comuto.flag.FlaggrComponent
 
InsetOperator<T> - Class in com.comuto.flag.operators
Operator that check if a value is in a List of values
InsetOperator(String, List<T>) - Constructor for class com.comuto.flag.operators.InsetOperator
 
isActivated(Flag, FlagContextInterface) - Static method in class com.comuto.flag.FlaggrManager
 
isActive(int, FlagContextInterface) - Method in class com.comuto.flag.Flaggr
Method to call to check that a flag is activated
isActive(String, FlagContextInterface) - Method in class com.comuto.flag.Flaggr
Method to call to check that a flag is activated
isFlagActivated(Flag, FlagContextInterface) - Method in class com.comuto.flag.strategy.AffirmativeStrategy
 
isFlagActivated(Flag, FlagContextInterface) - Method in class com.comuto.flag.strategy.MajorityStrategy
 
isFlagActivated(Flag, FlagContextInterface) - Method in interface com.comuto.flag.strategy.Strategy
Check if a flag is activated
isFlagActivated(Flag, FlagContextInterface) - Method in class com.comuto.flag.strategy.UnanimousStrategy
 

L

loadConfig(String) - Method in class com.comuto.flag.Flaggr
Start a request to download config url.

M

MAJORITY - Static variable in class com.comuto.flag.model.Flag
 
MajorityStrategy - Class in com.comuto.flag.strategy
Strategy that check if a majority of conditions are valid
MajorityStrategy() - Constructor for class com.comuto.flag.strategy.MajorityStrategy
 
ModuloOperator - Class in com.comuto.flag.operators
An operator that check if rest == value % module
ModuloOperator(String, int, int) - Constructor for class com.comuto.flag.operators.ModuloOperator
 

O

onLoadFlags(String, List<Flag>) - Method in interface com.comuto.flag.FlagsCallback
Called after flags are loaded.
Operator<T> - Class in com.comuto.flag.operators
An abstract operator All the operators must extend this class and implement the appliesTo method
Operator(String) - Constructor for class com.comuto.flag.operators.Operator
 

P

PercentageOperator - Class in com.comuto.flag.operators
An operator that applied to toggle to a percentage of users
PercentageOperator(String, int, int) - Constructor for class com.comuto.flag.operators.PercentageOperator
 
provideApplicationContext() - Method in class com.comuto.flag.FlaggrModule
 

R

reloadConfig() - Method in class com.comuto.flag.Flaggr
Reload flags for json config.

S

setConditions(List<Condition>) - Method in class com.comuto.flag.model.Flag
 
setKey(String) - Method in class com.comuto.flag.model.Condition
 
setName(String) - Method in class com.comuto.flag.model.Condition
 
setName(String) - Method in class com.comuto.flag.model.Flag
 
setOperator(Operator) - Method in class com.comuto.flag.model.Condition
 
setStatus(String) - Method in class com.comuto.flag.model.Flag
 
setStrategy(String) - Method in class com.comuto.flag.model.Flag
 
SHARED_PREF_SUFFIX - Static variable in class com.comuto.flag.FlaggrModule
 
Strategy - Interface in com.comuto.flag.strategy
An Interface for Strategy All Strategies must implement this class and implement the isFlagActivated method

T

toString() - Method in class com.comuto.flag.model.Flag
 

U

UNANIMOUS - Static variable in class com.comuto.flag.model.Flag
 
UnanimousStrategy - Class in com.comuto.flag.strategy
Strategy that check if all conditions are valid
UnanimousStrategy() - Constructor for class com.comuto.flag.strategy.UnanimousStrategy
 

W

with(Context) - Static method in class com.comuto.flag.Flaggr
The global default Flaggr instance.
A C D F G I L M O P R S T U W 
Skip navigation links