Constructor and Description |
---|
EnumClass(String enumPackage,
ShapeModel shape) |
Modifier and Type | Method and Description |
---|---|
com.squareup.javapoet.ClassName |
className() |
com.squareup.javapoet.TypeSpec |
poetSpec() |
Iterable<StaticImport> |
staticImports()
An optional hook to allow inclusion of static imports for example converting:
|
public EnumClass(String enumPackage, ShapeModel shape)
public com.squareup.javapoet.TypeSpec poetSpec()
public com.squareup.javapoet.ClassName className()
public Iterable<StaticImport> staticImports()
ClassSpec
import software.amazon.awssdk.utils.StringUtils;
//...
if(StringUtils.isBlank(value))...
to
import software.amazon.awssdk.utils.StringUtils.isBlank;
//...
if(isBlank(value))...
staticImports
in interface ClassSpec
Copyright © 2020. All rights reserved.