samples/apifest1/day1/inputandoperation/src/org/netbeans/apifest/boolcircuit/OperationInput.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:52:45 +0200
changeset 52 4257f4cf226b
permissions -rw-r--r--
Adding samples from API fest to the repository, including pieces of their code in the document, not just links
     1 /*
     2  * OperationInput.java
     3  *
     4  * Created on July 12, 2006, 2:32 PM
     5  *
     6  * To change this template, choose Tools | Template Manager
     7  * and open the template in the editor.
     8  */
     9 
    10 package org.netbeans.apifest.boolcircuit;
    11 
    12 /**
    13  *
    14  */
    15 final class OperationInput extends Input {
    16     private Operation operation;
    17     /** Creates a new instance of OperationInput */
    18     public OperationInput(Operation oper) {
    19         operation = oper;
    20     }
    21 
    22     public boolean getBooleanValue() {
    23         return operation.performBooleanOperation();
    24     }
    25     
    26 }