Uses of Class
org.springframework.amqp.utils.JavaUtils
Packages that use JavaUtils
-
Uses of JavaUtils in org.springframework.amqp.utils
Fields in org.springframework.amqp.utils declared as JavaUtilsModifier and TypeFieldDescriptionstatic final JavaUtils
JavaUtils.INSTANCE
The singleton instance of this utility class.Methods in org.springframework.amqp.utils that return JavaUtilsModifier and TypeMethodDescription<T> JavaUtils
JavaUtils.acceptIfCondition
(boolean condition, @Nullable T value, Consumer<T> consumer) InvokeConsumer.accept(Object)
with the value if it is not null and the condition is true.<T1,
T2> JavaUtils JavaUtils.acceptIfCondition
(boolean condition, T1 t1, T2 t2, BiConsumer<T1, T2> consumer) InvokeBiConsumer.accept(Object, Object)
with the arguments if the condition is true.JavaUtils.acceptIfHasText
(@Nullable String value, Consumer<String> consumer) InvokeConsumer.accept(Object)
with the value if it is not null or empty.<T> JavaUtils
JavaUtils.acceptIfHasText
(T t1, @Nullable String value, BiConsumer<T, String> consumer) InvokeBiConsumer.accept(Object, Object)
with the arguments if the value argument is not null or empty.<T> JavaUtils
JavaUtils.acceptIfNotNull
(@Nullable T value, Consumer<T> consumer) InvokeConsumer.accept(Object)
with the value if it is not null.<T1,
T2> JavaUtils JavaUtils.acceptIfNotNull
(T1 t1, @Nullable T2 t2, BiConsumer<T1, T2> consumer) InvokeBiConsumer.accept(Object, Object)
with the arguments if the t2 argument is not null.