Uses of Class
org.springframework.data.javapoet.LordOfTheStrings.TypedReturnBuilder
Packages that use LordOfTheStrings.TypedReturnBuilder
Package
Description
Opinionated extensions to JavaPoet to support Spring Data specific use cases.
-
Uses of LordOfTheStrings.TypedReturnBuilder in org.springframework.data.javapoet
Methods in org.springframework.data.javapoet that return LordOfTheStrings.TypedReturnBuilderModifier and TypeMethodDescriptionLordOfTheStrings.TypedReturnBuilder.nonNullableNumber(String resultToReturn) Add return statements for numeric types if the givenresultToReturnpoints to a non-nullableNumber.Add return statements for numeric types if the givenresultToReturnpoints to aNumber.Add a fallback return statement considering that the returned value might be nullable and apply conditionallyOptional.ofNullable(Object)wrapping if the return type isOptional.LordOfTheStrings.TypedReturnBuilder.optional(org.springframework.javapoet.CodeBlock codeBlock) Add a fallback return statement considering that the returned value might be nullable and apply conditionallyOptional.ofNullable(Object)wrapping if the return type isOptional.Add a fallback return statement if no previous return statement was added.LordOfTheStrings.TypedReturnBuilder.otherwise(org.springframework.javapoet.CodeBlock codeBlock) Add a fallback return statement if no previous return statement was added.Create a builder for a return statement targeting the given return type.LordOfTheStrings.returning(ResolvableType returnType) Create a builder for a return statement targeting the given return type.LordOfTheStrings.TypedReturnBuilder.when(boolean condition, String format, @Nullable Object... args) Add a return statement if the given condition istrue.LordOfTheStrings.TypedReturnBuilder.when(Class<?> returnType, String format, @Nullable Object... args) Add a return statement if the declared return type is assignable from the givenreturnType.LordOfTheStrings.TypedReturnBuilder.whenBoolean(String format, @Nullable Object... args) Add a return statement if the return type is boolean (primitive or box type).LordOfTheStrings.TypedReturnBuilder.whenBoxed(Class<?> primitiveOrWrapper, String format, @Nullable Object... args) Add a return statement if the return type matches the given boxed wrapper type.LordOfTheStrings.TypedReturnBuilder.whenBoxedInteger(String format, @Nullable Object... args) Add a return statement if the return type isInteger(boxedinttype).LordOfTheStrings.TypedReturnBuilder.whenBoxedLong(String format, @Nullable Object... args) Add a return statement if the return type isLong(boxedlongtype).Add a return statement if the return type is a primitiveinttype.Add a return statement if the return type is a primitivelongtype.LordOfTheStrings.TypedReturnBuilder.whenPrimitiveOrBoxed(Class<?> primitiveType, String format, @Nullable Object... args) Add a return statement if the return type matches the given primitive or boxed wrapper type.