Class PrimitiveOptionalProperty.Factory
- java.lang.Object
-
- org.inferred.freebuilder.processor.property.PrimitiveOptionalProperty.Factory
-
- All Implemented Interfaces:
PropertyCodeGenerator.Factory
- Enclosing class:
- PrimitiveOptionalProperty
static class PrimitiveOptionalProperty.Factory extends java.lang.Object implements PropertyCodeGenerator.Factory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidcheckForInfiniteLoop(PropertyCodeGenerator.Config config, PrimitiveOptionalProperty.OptionalType optional)java.util.Optional<PrimitiveOptionalProperty>create(PropertyCodeGenerator.Config config)Create a newPropertyCodeGeneratorfor the property described inconfig.
-
-
-
Method Detail
-
create
public java.util.Optional<PrimitiveOptionalProperty> create(PropertyCodeGenerator.Config config)
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.
-
checkForInfiniteLoop
private static void checkForInfiniteLoop(PropertyCodeGenerator.Config config, PrimitiveOptionalProperty.OptionalType optional)
-
-