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 JavaUtilsJavaUtils.INSTANCEThe singleton instance of this utility class.Methods in org.springframework.amqp.utils that return JavaUtilsModifier and TypeMethodDescription<T> JavaUtilsJavaUtils.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> JavaUtilsJavaUtils.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> JavaUtilsJavaUtils.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.<T> JavaUtilsJavaUtils.acceptOrElseIfNotNull(@Nullable T value, @Nullable T alternative, Consumer<T> consumer) InvokeConsumer.accept(Object)with the value or alternative if one of them is not null.