public interface Feature<T extends Feature<T>>
SourceBuilder, such as Java language-level features, or Guava
types and methods.
A feature will typically provide a FeatureType constant that can be passed to
SourceBuilder#feature(FeatureType) to determine the current status of a feature.
For instance, to determine whether the diamond operator is available for use:
code.feature(SOURCE_LEVEL).supportsDiamondOperator()
Copyright © 2016 Google, Inc.. All rights reserved.