samples/apifest1/day1/inputandoperation/src/org/netbeans/apifest/boolcircuit/OrOperation.java
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/apifest1/day1/inputandoperation/src/org/netbeans/apifest/boolcircuit/OrOperation.java Sat Jun 14 09:52:45 2008 +0200
1.3 @@ -0,0 +1,31 @@
1.4 +/*
1.5 + * OrOperation.java
1.6 + *
1.7 + * Created on July 12, 2006, 2:34 PM
1.8 + *
1.9 + * To change this template, choose Tools | Template Manager
1.10 + * and open the template in the editor.
1.11 + */
1.12 +
1.13 +package org.netbeans.apifest.boolcircuit;
1.14 +
1.15 +/**
1.16 + *
1.17 + */
1.18 +final class OrOperation extends Operation {
1.19 +
1.20 + private Input input1;
1.21 +
1.22 + private Input input2;
1.23 +
1.24 + /** Creates a new instance of orOperation */
1.25 + OrOperation(Input in1, Input in2) {
1.26 + input1 = in1;
1.27 + input2 = in2;
1.28 + }
1.29 +
1.30 + boolean performBooleanOperation() {
1.31 + return input1.getBooleanValue() || input2.getBooleanValue();
1.32 + }
1.33 +
1.34 +}