Interface Matcher
- All Superinterfaces:
BiPredicate<InjectionTarget, honeyroasted.jype.system.JTypeSystem>
Represents a predicate which can match
InjectionTargets-
Method Summary
Modifier and TypeMethodDescriptiondefault Matcherand(BiPredicate<? super InjectionTarget, ? super honeyroasted.jype.system.JTypeSystem> other) default Matchernegate()default Matcheror(BiPredicate<? super InjectionTarget, ? super honeyroasted.jype.system.JTypeSystem> other) default Bindingto(BiFunction<InjectionTarget, honeyroasted.jype.system.JTypeSystem, InjectionResult> factory) Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections using the given functiondefault BindingtoFactory(Function<InjectionTarget, Object> factory) Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections using the given functiondefault BindingtoInstance(Object instance) Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections by injecting the given objectdefault BindingtoProvider(Supplier<Object> provider) Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections by injecting the result of the given supplierMethods inherited from interface java.util.function.BiPredicate
test
-
Method Details
-
to
default Binding to(BiFunction<InjectionTarget, honeyroasted.jype.system.JTypeSystem, InjectionResult> factory) Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections using the given function- Parameters:
factory- The injection function- Returns:
- A new
Binding
-
toInstance
Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections by injecting the given object- Parameters:
instance- The object to inject- Returns:
- A new
Binding
-
toProvider
Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections by injecting the result of the given supplier- Parameters:
provider- The supplier to generate the injection value- Returns:
- A new
Binding
-
toFactory
Creates aBindingfrom this matcher which claims allInjectionTargets this matcher matches, and which handles injections using the given function- Parameters:
factory- The function to generate the injection value- Returns:
- A new
Binding
-
and
default Matcher and(BiPredicate<? super InjectionTarget, ? super honeyroasted.jype.system.JTypeSystem> other) - Specified by:
andin interfaceBiPredicate<InjectionTarget, honeyroasted.jype.system.JTypeSystem>
-
or
default Matcher or(BiPredicate<? super InjectionTarget, ? super honeyroasted.jype.system.JTypeSystem> other) - Specified by:
orin interfaceBiPredicate<InjectionTarget, honeyroasted.jype.system.JTypeSystem>
-
negate
- Specified by:
negatein interfaceBiPredicate<InjectionTarget, honeyroasted.jype.system.JTypeSystem>
-