Package io.micronaut.core.async
Class ReactiveStreamsTypeInformationProvider
java.lang.Object
io.micronaut.core.async.ReactiveStreamsTypeInformationProvider
- All Implemented Interfaces:
TypeInformationProvider
public final class ReactiveStreamsTypeInformationProvider
extends Object
implements TypeInformationProvider
Implementation of
TypeInformationProvider for reactive streams.- Since:
- 2.4.0
- Author:
- graemerocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCompletable(@NonNull Class<?> type) does the type represent a completable type.booleanisReactive(@NonNull Class<?> type) does the type represent a reactive type.booleandoes the given type represent a type that emits a single item.booleanisSpecifiedSingle(@NonNull AnnotationMetadataProvider annotationMetadataProvider) Returns whether the annotation metadata specifies the type as single.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.type.TypeInformationProvider
isWrapperType
-
Constructor Details
-
ReactiveStreamsTypeInformationProvider
public ReactiveStreamsTypeInformationProvider()
-
-
Method Details
-
isSpecifiedSingle
public boolean isSpecifiedSingle(@NonNull @NonNull AnnotationMetadataProvider annotationMetadataProvider) Description copied from interface:TypeInformationProviderReturns whether the annotation metadata specifies the type as single.- Specified by:
isSpecifiedSinglein interfaceTypeInformationProvider- Parameters:
annotationMetadataProvider- The annotation metadata provider- Returns:
- True if it does
-
isSingle
Description copied from interface:TypeInformationProviderdoes the given type represent a type that emits a single item.- Specified by:
isSinglein interfaceTypeInformationProvider- Parameters:
type- True if it does- Returns:
- True if it is single
-
isReactive
Description copied from interface:TypeInformationProviderdoes the type represent a reactive type.- Specified by:
isReactivein interfaceTypeInformationProvider- Parameters:
type- The type- Returns:
- True if it is reactive
-
isCompletable
Description copied from interface:TypeInformationProviderdoes the type represent a completable type.- Specified by:
isCompletablein interfaceTypeInformationProvider- Parameters:
type- The type- Returns:
- True if it is completable
-