You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It returns true if a type is mapped to something... meaning that injector.getInstance(<Type>) will return a value and not throw an exception.
It doesn't really matter if it is value or type mapping because injector can only have one mapping per type anyway (unless it's named but that's not the point here)
Think of it this way - optional injection is pretty much if(injector.hasMapping(field.type)) field.value = injector.getInstance(field.type); where field is the one that is being injected into.
How can I get
hasClassToValueMapping
,hasClassNameToValueMapping
,hasClassToTypeMapping
,hasClassNameToTypeMapping
?I see only 1 method
hasMapping
.What actually it returns? type to class?
The text was updated successfully, but these errors were encountered: