samples/conditionaluseofapi/src/conditionaluseofapi/AddString.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:50:50 +0200
changeset 6 b577ee7fcf67
permissions -rw-r--r--
example with conditional usage of an API
jtulach@6
     1
jtulach@6
     2
package conditionaluseofapi;
jtulach@6
     3
jtulach@6
     4
/** Facade interface to shield us from the actual implementation for 
jtulach@6
     5
 * Java 1.4 and Java 5.
jtulach@6
     6
 *
jtulach@6
     7
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jtulach@6
     8
 */
jtulach@6
     9
// BEGIN: theory.binary.overloads.facade
jtulach@6
    10
interface AddString {
jtulach@6
    11
    public void addString(String msg);
jtulach@6
    12
    public String getMessage();
jtulach@6
    13
}
jtulach@6
    14
// END: theory.binary.overloads.facade