Uses of Class
org.springframework.amqp.utils.JavaUtils
-
Uses of JavaUtils in org.springframework.amqp.utils
Modifier and TypeFieldDescriptionstatic final JavaUtils
JavaUtils.INSTANCE
The singleton instance of this utility class.Modifier and TypeMethodDescription<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.<T> JavaUtils
JavaUtils.acceptIfCondition
(boolean condition, T value, Consumer<T> consumer) InvokeConsumer.accept(Object)
with the value if the condition is true.JavaUtils.acceptIfHasText
(String value, Consumer<String> consumer) InvokeConsumer.accept(Object)
with the value if it is not null or empty.<T> JavaUtils
JavaUtils.acceptIfHasText
(T t1, String value, BiConsumer<T, String> consumer) InvokeBiConsumer.accept(Object, Object)
with the arguments if the value argument is not null or empty.<T1,
T2> JavaUtils JavaUtils.acceptIfNotNull
(T1 t1, T2 t2, BiConsumer<T1, T2> consumer) InvokeBiConsumer.accept(Object, Object)
with the arguments if the t2 argument is not null.<T> JavaUtils
JavaUtils.acceptIfNotNull
(T value, Consumer<T> consumer) InvokeConsumer.accept(Object)
with the value if it is not null.