Files
nus/Lab4/Actionable.java
Yadunand Prem f5a9db22d1 wip
2022-11-08 18:03:39 +08:00

17 lines
327 B
Java

/**
* The Actionable interface that can
* act when given an action.
*
* Contains a single abstract method act.
*
* CS2030S Lab 4
* AY22/23 Semester 1
*
* @author Yadunand Prem (10B)
*/
// act consumes the T and passes it to action, thus super
interface Actionable<T> {
public void act(Action<? super T> action);
}