/** * Shortcut for {@code getDescriptor().isNoValue()}. */ public boolean isNoValue() { return getDescriptor().isNoValue(); }
/** * Shortcut for {@code getDescriptor().getReactiveType()}. */ public Class<?> getReactiveType() { return getDescriptor().getReactiveType(); }
/** * Shortcut for {@code getDescriptor().isMultiValue()}. */ public boolean isMultiValue() { return getDescriptor().isMultiValue(); }
/** * Shortcut for {@code getDescriptor().supportsEmpty()}. */ public boolean supportsEmpty() { return getDescriptor().supportsEmpty(); }
/** * Adapt the given instance to a Reactive Streams {@code Publisher}. * @param source the source object to adapt from; if the given object is * {@code null}, {@link ReactiveTypeDescriptor#getEmptyValue()} is used. * @return the Publisher representing the adaptation */ @SuppressWarnings("unchecked") public <T> Publisher<T> toPublisher(@Nullable Object source) { if (source == null) { source = getDescriptor().getEmptyValue(); } return (Publisher<T>) this.toPublisherFunction.apply(source); }
/** * Shortcut for {@code getDescriptor().getReactiveType()}. */ public Class<?> getReactiveType() { return getDescriptor().getReactiveType(); }
/** * Shortcut for {@code getDescriptor().supportsEmpty()}. */ public boolean supportsEmpty() { return getDescriptor().supportsEmpty(); }
/** * Shortcut for {@code getDescriptor().isNoValue()}. */ public boolean isNoValue() { return getDescriptor().isNoValue(); }
/** * Adapt the given instance to a Reactive Streams {@code Publisher}. * @param source the source object to adapt from; if the given object is * {@code null}, {@link ReactiveTypeDescriptor#getEmptyValue()} is used. * @return the Publisher representing the adaptation */ @SuppressWarnings("unchecked") public <T> Publisher<T> toPublisher(@Nullable Object source) { if (source == null) { source = getDescriptor().getEmptyValue(); } return (Publisher<T>) this.toPublisherFunction.apply(source); }
/** * Shortcut for {@code getDescriptor().isMultiValue()}. */ public boolean isMultiValue() { return getDescriptor().isMultiValue(); }
if (reactiveAdapterRegistry.hasAdapters()) { ReactiveAdapter adapter = reactiveAdapterRegistry.getAdapter(valueClass); if (adapter != null && !adapter.getDescriptor().isNoValue()) { reactiveSuffix = ClassUtils.getShortName(valueClass); valueClass = parameter.nested().getNestedParameterType();
if (reactiveAdapterRegistry.hasAdapters()) { ReactiveAdapter adapter = reactiveAdapterRegistry.getAdapter(valueClass); if (adapter != null && !adapter.getDescriptor().isNoValue()) { reactiveSuffix = ClassUtils.getShortName(valueClass); valueClass = ResolvableType.forMethodReturnType(method).getGeneric().toClass();
if (reactiveAdapterRegistry.hasAdapters()) { ReactiveAdapter adapter = reactiveAdapterRegistry.getAdapter(valueClass); if (adapter != null && !adapter.getDescriptor().isNoValue()) { reactiveSuffix = ClassUtils.getShortName(valueClass); valueClass = parameter.nested().getNestedParameterType();
if (reactiveAdapterRegistry.hasAdapters()) { ReactiveAdapter adapter = reactiveAdapterRegistry.getAdapter(valueClass); if (adapter != null && !adapter.getDescriptor().isNoValue()) { reactiveSuffix = ClassUtils.getShortName(valueClass); valueClass = ResolvableType.forMethodReturnType(method).getGeneric().toClass();
/** * Shortcut for {@code getDescriptor().supportsEmpty()}. */ public boolean supportsEmpty() { return getDescriptor().supportsEmpty(); }
/** * Shortcut for {@code getDescriptor().isNoValue()}. */ public boolean isNoValue() { return getDescriptor().isNoValue(); }
/** * Shortcut for {@code getDescriptor().getReactiveType()}. */ public Class<?> getReactiveType() { return getDescriptor().getReactiveType(); }
/** * Shortcut for {@code getDescriptor().isMultiValue()}. */ public boolean isMultiValue() { return getDescriptor().isMultiValue(); }
/** * Adapt the given instance to a Reactive Streams {@code Publisher}. * @param source the source object to adapt from; if the given object is * {@code null}, {@link ReactiveTypeDescriptor#getEmptyValue()} is used. * @return the Publisher representing the adaptation */ @SuppressWarnings("unchecked") public <T> Publisher<T> toPublisher(@Nullable Object source) { if (source == null) { source = getDescriptor().getEmptyValue(); } return (Publisher<T>) this.toPublisherFunction.apply(source); }
/** * Shortcut for {@code getDescriptor().supportsEmpty()}. */ public boolean supportsEmpty() { return getDescriptor().supportsEmpty(); }