Class ValueProviders
java.lang.Object
ch.tocco.nice2.toolbox.api.inject.ValueProviders
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueProvider
concat
(ValueProvider... providers) Creates a value provider from the given list of providers.static ValueProvider
concat
(Collection<ValueProvider> providers) Creates a value provider from the given list of providers.static <T extends Annotation>
TfindAnnotation
(Annotation[] annots, Class<? extends Annotation> clazz)
-
Method Details
-
concat
Creates a value provider from the given list of providers. The first provider that returns a non-null value is used. -
concat
Creates a value provider from the given list of providers. The first provider that returns a non-null value is used. -
findAnnotation
@Nullable public static <T extends Annotation> T findAnnotation(Annotation[] annots, Class<? extends Annotation> clazz)
-