public class OptionalPropertyFactory extends Object
PropertyCodeGenerator.Factory providing a default value (absent) and convenience
setter methods for Optional properties.| Constructor and Description |
|---|
OptionalPropertyFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<? extends PropertyCodeGenerator> |
create(org.inferred.freebuilder.processor.PropertyCodeGenerator.Config config)
Create a new
PropertyCodeGenerator for the property described in config. |
public com.google.common.base.Optional<? extends PropertyCodeGenerator> create(org.inferred.freebuilder.processor.PropertyCodeGenerator.Config config)
PropertyCodeGenerator for the property described in config.PropertyCodeGenerator, or Optional.absent() if the factory
does not support this type of property.Copyright © 2015 Google, Inc.. All rights reserved.