Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.myproject.myfeature
// Configuration of My Feature
interface Configuration {
// Returns whether the feature is enabled or not
public bool isFeatureEnabled();
}
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
You can’t perform that action at this time.