public interface ClassSpec
Modifier and Type | Method and Description |
---|---|
com.squareup.javapoet.ClassName |
className() |
com.squareup.javapoet.TypeSpec |
poetSpec() |
default Iterable<StaticImport> |
staticImports()
An optional hook to allow inclusion of static imports for example converting:
|
com.squareup.javapoet.TypeSpec poetSpec()
PoetSpec.builder()...
implementationcom.squareup.javapoet.ClassName className()
default Iterable<StaticImport> staticImports()
import software.amazon.awssdk.utils.StringUtils;
//...
if(StringUtils.isBlank(value))...
to
import software.amazon.awssdk.utils.StringUtils.isBlank;
//...
if(isBlank(value))...
Copyright © 2023. All rights reserved.