samples/apifest1/day2/inputandoperation/src/org/netbeans/apifest/boolcircuit/Circuit.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:52:51 +0200
changeset 57 ab48f8fc0858
parent 55 5a0b7b1f8f11
permissions -rw-r--r--
Also second version of this class needs to be made public, otherwise nobody will be able to use this API
jtulach@52
     1
/*
jtulach@52
     2
 * The contents of this file are subject to the terms of the Common Development
jtulach@52
     3
 * and Distribution License (the License). You may not use this file except in
jtulach@52
     4
 * compliance with the License.
jtulach@52
     5
 *
jtulach@52
     6
 * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
jtulach@52
     7
 * or http://www.netbeans.org/cddl.txt.
jtulach@52
     8
 *
jtulach@52
     9
 * When distributing Covered Code, include this CDDL Header Notice in each file
jtulach@52
    10
 * and include the License file at http://www.netbeans.org/cddl.txt.
jtulach@52
    11
 * If applicable, add the following below the CDDL Header, with the fields
jtulach@52
    12
 * enclosed by brackets [] replaced by your own identifying information:
jtulach@52
    13
 * "Portions Copyrighted [year] [name of copyright owner]"
jtulach@52
    14
 *
jtulach@52
    15
 * The Original Software is NetBeans. The Initial Developer of the Original
jtulach@52
    16
 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
jtulach@52
    17
 * Microsystems, Inc. All Rights Reserved.
jtulach@52
    18
 */
jtulach@52
    19
jtulach@52
    20
package org.netbeans.apifest.boolcircuit;
jtulach@52
    21
jtulach@52
    22
/**
jtulach@52
    23
 */
jtulach@57
    24
public class Circuit {
jtulach@52
    25
    
jtulach@52
    26
    public static boolean evaluateBooleanOperation(Operation op) {
jtulach@52
    27
        return op.performBooleanOperation();
jtulach@52
    28
    }
jtulach@55
    29
jtulach@55
    30
    // BEGIN: apifest.day2.inputandoperation.addedmethod
jtulach@52
    31
    public static double evaluateRealOperation(Operation op) {
jtulach@52
    32
        return op.performRealOperation();
jtulach@52
    33
    }
jtulach@55
    34
    // END: apifest.day2.inputandoperation.addedmethod
jtulach@52
    35
}