Lambdas?

Hello guys…
when using Lambdas in OH 2 - is the structure all the same where I need to do like this for switches?
org.openhab.core.library.items.SwitchItem relayItem,

Why is that needed? (Just to be curious) :slight_smile: