Last active
March 21, 2018 19:38
-
-
Save nicolopignatelli/5e910ec6ec42a4c480f75464bb802968 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.myproject.myfeature | |
// Configuration of My Feature | |
interface Configuration { | |
// Returns whether the feature is enabled or not | |
public bool isFeatureEnabled(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.myproject.myfeature | |
// ... | |
if (configuration.isFeatureEnabled()) { | |
// run feature logic | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment