feat: update structure
This commit is contained in:
15
cs2030s/labs/Lab4/Improbable.java
Normal file
15
cs2030s/labs/Lab4/Improbable.java
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* A generic Immutator that takes in an object
|
||||
* that is T and returns an object that is probably T.
|
||||
* CS2030S Lab 4
|
||||
* AY22/23 Semester 1
|
||||
*
|
||||
* @author Yadunand Prem (10B)
|
||||
*/
|
||||
|
||||
class Improbable<T> implements Immutator<Probably<T>, T> {
|
||||
@Override
|
||||
public Probably<T> invoke(T param) {
|
||||
return Probably.just(param);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user