feat: move everything to single folder
This commit is contained in:
21
cs2030s/Lab6/Cond.java
Normal file
21
cs2030s/Lab6/Cond.java
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Represents a conditional type.
|
||||
* CS2030S Lab 5
|
||||
* AY20/21 Semester 2
|
||||
*
|
||||
*/
|
||||
interface Cond {
|
||||
/**
|
||||
* Evaluates the given conditional.
|
||||
*
|
||||
* @return the boolean result of the evaluation
|
||||
*/
|
||||
boolean eval();
|
||||
|
||||
/**
|
||||
* negates the value of the conditional, without evaluating it.
|
||||
*
|
||||
* @return a new conditional, with the negated value
|
||||
*/
|
||||
Cond neg();
|
||||
}
|
||||
Reference in New Issue
Block a user