public class FeatureRepository extends Object implements IFeatureRepository
| Constructor and Description |
|---|
FeatureRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Feature feature)
Add
Feature to support. |
void |
addFeatureProfile(Profile profile)
Add
Profile to support a group of features. |
Optional<Feature> |
findFeature(Object needle)
Search for supported features added with the addProfile.
|
String |
toString() |
public void addFeatureProfile(Profile profile)
Profile to support a group of features.public void addFeature(Feature feature)
Feature to support.feature - supported Feature.public Optional<Feature> findFeature(Object needle)
Optional.empty() is returned
Can take multiple inputs: String, search for the action name of the feature. Request/Confirmation, search for a feature that matches. Anything else will return
Optional.empty().
findFeature in interface IFeatureRepositoryneedle - Object supports String, Request or ConfirmationCopyright © 2022. All rights reserved.