Package io.apicurio.registry.utils
Class OptionalBean<T>
java.lang.Object
io.apicurio.registry.utils.OptionalBean<T>
Proxyable alternative to java.util.Optional.
Optional cannot be used with CDI because it is final.
- Author:
- Jakub Senko m@jsenko.net
-
Constructor Summary
ConstructorsConstructorDescriptionThis constructor is public to avoid an error in Quarkus and should not be called directly.OptionalBean(T value) This constructor is public to avoid an error in Quarkus and should not be called directly. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> OptionalBean<T>empty()booleanget()inthashCode()booleanisEmpty()boolean<U> OptionalBean<U>static <T> OptionalBean<T>of(T value) static <T> OptionalBean<T>ofNullable(T value) stream()toString()
-
Constructor Details
-
OptionalBean
public OptionalBean()This constructor is public to avoid an error in Quarkus and should not be called directly. -
OptionalBean
This constructor is public to avoid an error in Quarkus and should not be called directly.
-
-
Method Details