public class StaticFeatureSet extends java.lang.Object implements FeatureSet
Feature instances, defaulting to FeatureType.testDefault(org.inferred.freebuilder.processor.util.feature.FeatureSet) when
asked for a type that was not explicitly registered.| Constructor and Description |
|---|
StaticFeatureSet(Feature<?>... features)
Creates a feature set which will return
features when get(org.inferred.freebuilder.processor.util.feature.FeatureType<T>) is called for the
appropriate type. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Feature<T>> |
get(FeatureType<T> featureType)
Returns the registered instance of
featureType, or the value of
FeatureType.testDefault(org.inferred.freebuilder.processor.util.feature.FeatureSet) if no explicit instance was registered with this set. |
java.lang.String |
toString() |
public StaticFeatureSet(Feature<?>... features)
features when get(org.inferred.freebuilder.processor.util.feature.FeatureType<T>) is called for the
appropriate type.public <T extends Feature<T>> T get(FeatureType<T> featureType)
featureType, or the value of
FeatureType.testDefault(org.inferred.freebuilder.processor.util.feature.FeatureSet) if no explicit instance was registered with this set.get in interface FeatureSetpublic java.lang.String toString()
toString in class java.lang.Object