0

I lost recently the name of a kind of Java interface (language actually does not matter) like Comparable, Runnable,... which share the same principle: they only contain one single method to be implemented.

You have dozen of these interfaces in Java as well, like ActionListener, Cloneable,...

Note that I am not looking for the possible usages of such interfaces, just the title Java reference guides and books have given to such kind of interface.

By the way, the answer I'm searching for is not closure.

Lastnico
  • 1,473
  • 11
  • 13

1 Answers1

0

As listed in the 3 question's comment, names of such interface are:

  • Functional Interface
  • Role Interface
  • or SAM (Single Abstract Method)
Lastnico
  • 1,473
  • 11
  • 13