samples/apifest1/day1/inputandoperation/src/org/netbeans/apifest/boolcircuit/NotOperation.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  * NotOperation.java
     3  *
     4  * Created on July 12, 2006, 2:35 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 NotOperation extends Operation {
    16 
    17     private Input input;
    18     
    19     /** Creates a new instance of NotOperation */
    20     NotOperation(Input input) {
    21         this.input = input;
    22     }
    23 
    24     boolean performBooleanOperation() {
    25         return !input.getBooleanValue();
    26     }
    27     
    28 }