Class OptionalProperty.Factory
java.lang.Object
org.inferred.freebuilder.processor.property.OptionalProperty.Factory
- All Implemented Interfaces:
PropertyCodeGenerator.Factory
- Enclosing class:
OptionalProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(PropertyCodeGenerator.Config config) Create a newPropertyCodeGeneratorfor the property described inconfig.private static Optional<OptionalProperty.OptionalType> maybeOptional(DeclaredType type)
-
Constructor Details
-
Factory
Factory()
-
-
Method Details
-
create
Description copied from interface:PropertyCodeGenerator.FactoryCreate a newPropertyCodeGeneratorfor the property described inconfig.- Specified by:
createin interfacePropertyCodeGenerator.Factory- Returns:
- A new
PropertyCodeGenerator, orOptional.empty()if the factory does not support this type of property.
-
maybeOptional
-