Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package ca.bcit.cst.comp2526.assign4.a00752818;
- /**
- *
- * @author User
- */
- public class Operation {
- /**
- *
- * @author User
- */
- private static enum OperationCategory
- {
- GATES,
- NOTGATES,
- }
- public static enum OperationType
- {
- AND(OperationCategory.GATES),
- OR(OperationCategory.GATES),
- XOR(OperationCategory.GATES),
- NOT(OperationCategory.NOTGATES),
- NAND(OperationCategory.NOTGATES),
- NOR(OperationCategory.NOTGATES),
- XNOR(OperationCategory.NOTGATES);
- private final OperationCategory category;
- private OperationType(final OperationCategory cat)
- {
- if(cat == null)
- {
- throw new IllegalArgumentException("category cannot be null");
- }
- category = cat;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement