feat: update structure
This commit is contained in:
13
cs2030s/labs/Lab4/Actionable.java
Normal file
13
cs2030s/labs/Lab4/Actionable.java
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user