B
- the builder typeFeature
s are used only to communicate configuration data
to the UI controls that interrogate the configurations. The builder API for
users is a fluent API, not abstracted in terms of features@Deprecated public abstract class AbstractFeatureAwareBuilder<B> extends Object
Constructor and Description |
---|
AbstractFeatureAwareBuilder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
B |
disableFeature(Feature featureToDisable)
Deprecated.
Disable a feature.
|
B |
enableFeature(Feature featureToEnable)
Deprecated.
Enable a feature.
|
protected B |
getBuilder()
Deprecated.
Returns the builder instance.
|
protected abstract Set<Feature> |
getEnabledFeatures()
Deprecated.
Return the list of enabled features.
|
protected abstract Set<Feature> |
getSupportedFeatures()
Deprecated.
Returns the list of supported features.
|
B |
inheritFeatures(Collection<Feature> features)
Deprecated.
Inherit the features as long as they are supported.
|
boolean |
isFeatureEnabled(Feature feature)
Deprecated.
Check whether the given feature is enabled.
|
boolean |
isFeatureSupported(Feature feature)
Deprecated.
Check whether the given feature is supported.
|
protected abstract Set<Feature> getSupportedFeatures()
protected abstract Set<Feature> getEnabledFeatures()
public B enableFeature(Feature featureToEnable)
featureToEnable
- the feature to enablepublic B disableFeature(Feature featureToDisable)
featureToDisable
- the feature to disablepublic boolean isFeatureEnabled(Feature feature)
feature
- the feature to checkpublic boolean isFeatureSupported(Feature feature)
feature
- the feature to checkpublic B inheritFeatures(Collection<Feature> features)
features
- list of features to inherit.protected B getBuilder()
Copyright © 2019. All rights reserved.