samples/reexport/src-wrap1.0/org/apidesign/reexport/query/Query.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
parent 97 a1dd8447b30f
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
jtulach@97
     1
package query;
jtulach@97
     2
jtulach@97
     3
import api.String;
jtulach@97
     4
jtulach@97
     5
// BEGIN: reexport.wrap1.0
jtulach@97
     6
public final class Query {
jtulach@97
     7
    public static final class Sequence {
jtulach@97
     8
        private String data;
jtulach@97
     9
        
jtulach@97
    10
        Sequence(String data) {
jtulach@97
    11
            this.data = data;
jtulach@97
    12
        }
jtulach@97
    13
jtulach@97
    14
        public int length() {
jtulach@97
    15
            return data.length();
jtulach@97
    16
        }
jtulach@97
    17
jtulach@97
    18
        public char charAt(int i) {
jtulach@97
    19
            return data.charAt(i);
jtulach@97
    20
        }
jtulach@97
    21
    }
jtulach@97
    22
    
jtulach@97
    23
    public Sequence computeReply() {
jtulach@97
    24
        char[] hello = { 'H', 'e', 'l', 'l', 'o' };
jtulach@97
    25
        return new Sequence(new String(hello));
jtulach@97
    26
    }
jtulach@97
    27
}
jtulach@97
    28
// END: reexport.wrap1.0