I normally code in Delphi but am having to play catch-up in Java fast for one particular project. I'm having a problem identifying Java equivalents to a number of Delphi language features because presumably different terminology is used to refer to them.
I see from the Java language specification that it supports lambda expressions so I imagine I'll be able to find examples somewhere showing the Java equivalent to anonymous methods.
My question here is does Java have equivalents to the following Delphi types and, if so, what are they named or what are the equivalent Java constructs:
Tradition procedural,functional types, as in
type MyProc = procedure(I : Integer)
procedure of object
andfunction of object
?
(I hope both of these are close enough to be asked in a single question)