Class EnvironmentFeatureSet
- java.lang.Object
-
- org.inferred.freebuilder.processor.source.feature.EnvironmentFeatureSet
-
- All Implemented Interfaces:
FeatureSet
public class EnvironmentFeatureSet extends java.lang.Object implements FeatureSet
A set ofFeatureinstances, determined dynamically by callingFeatureType.forEnvironment(javax.annotation.processing.ProcessingEnvironment, org.inferred.freebuilder.processor.source.feature.FeatureSet).
-
-
Field Summary
Fields Modifier and Type Field Description private javax.annotation.processing.ProcessingEnvironmentenvprivate java.util.Map<FeatureType<?>,Feature<?>>featuresByType
-
Constructor Summary
Constructors Constructor Description EnvironmentFeatureSet(javax.annotation.processing.ProcessingEnvironment env)Constructs a feature set using the given processing environment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Feature<T>>
Tget(FeatureType<T> featureType)Returns an instance offeatureType.
-
-
-
Field Detail
-
env
private final javax.annotation.processing.ProcessingEnvironment env
-
featuresByType
private final java.util.Map<FeatureType<?>,Feature<?>> featuresByType
-
-
Method Detail
-
get
public <T extends Feature<T>> T get(FeatureType<T> featureType)
Description copied from interface:FeatureSetReturns an instance offeatureType.- Specified by:
getin interfaceFeatureSet
-
-