samples/apifest1/day2/inputandoperation/src/org/netbeans/apifest/boolcircuit/AndOperation.java
Adding samples from API fest to the repository, including pieces of their code in the document, not just links
4 * Created on July 12, 2006, 2:34 PM
6 * To change this template, choose Tools | Template Manager
7 * and open the template in the editor.
10 package org.netbeans.apifest.boolcircuit;
15 final class AndOperation extends Operation {
21 /** Creates a new instance of AndOperation */
22 AndOperation(Input in1, Input in2) {
27 public boolean performBooleanOperation() {
28 return input1.getBooleanValue() && input2.getBooleanValue();
31 public double performRealOperation() {
32 return input1.getRealValue() * input2.getRealValue();