Interface ExperimentalFeaturesRegistry
-
- All Known Implementing Classes:
ExperimentalFeaturesRegistryImpl
public interface ExperimentalFeaturesRegistryRegistry of allExperimentalFeaturepresent on the platform
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<ExperimentalFeature>getAllFeatures()Returns all theExperimentalFeaturepresent on the platformOptional<ExperimentalFeature>getFeature(String featureId)Returns theExperimentalFeatureidentified by the given featureIDbooleanisFeatureEnabled(String featureId)Determines if a given feature is enabled or not.
-
-
-
Method Detail
-
isFeatureEnabled
boolean isFeatureEnabled(String featureId)
Determines if a given feature is enabled or not.- Parameters:
featureId- a String containing the identifier of an existing feature- Returns:
- true if the feature is enabled, false if it is disabled
-
getFeature
Optional<ExperimentalFeature> getFeature(String featureId)
Returns theExperimentalFeatureidentified by the given featureID- Parameters:
featureId- a String containing the identifier of an existing feature- Returns:
- the
ExperimentalFeatureinstance identified by the featureId if is present on the platform, null if it doesn't exist
-
getAllFeatures
Collection<ExperimentalFeature> getAllFeatures()
Returns all theExperimentalFeaturepresent on the platform- Returns:
- a List containing all
ExperimentalFeaturepresent on the platform
-
-