public class FeatureLoader extends Object
| Constructor and Description |
|---|
FeatureLoader() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Feature> |
getFeature(Class<T> featureInterface,
Supplier<T> defaultFeature)
Loads a single feature for the interface and a default one, if none is available
|
static <T extends Feature> |
getFeatureList(Class<T> featureInterface,
Supplier<T> defaultFeature)
Loads a list of features for the interface and a default one, if none is available
|
static Stream<Feature> |
loadedFeatures() |
public static <T extends Feature> T getFeature(Class<T> featureInterface, Supplier<T> defaultFeature)
T - the type of the featurefeatureInterface - the feature interfacedefaultFeature - the supplier for the default featurepublic static <T extends Feature> List<T> getFeatureList(Class<T> featureInterface, Supplier<T> defaultFeature)
T - the type of the featurefeatureInterface - the feature interfacedefaultFeature - the supplier for the default featureCopyright © 2021. All rights reserved.