Class ValueProviders
java.lang.Object
ch.tocco.nice2.toolbox.api.inject.ValueProviders
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueProviderconcat(ValueProvider... providers) Creates a value provider from the given list of providers.static ValueProviderconcat(Collection<ValueProvider> providers) Creates a value provider from the given list of providers.static <T extends Annotation>
@Nullable 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
public static <T extends Annotation> @Nullable T findAnnotation(Annotation[] annots, Class<? extends Annotation> clazz)
-