File: CallbackTest.java

package info (click to toggle)
ruby-rjb 1.5.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 704 kB
  • sloc: ansic: 3,859; ruby: 2,604; java: 247; makefile: 35; sh: 3
file content (12 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
package jp.co.infoseek.hp.arton.rjb;

public class CallbackTest {
    public interface Callback {
        String method(long lval, short s, int n, double d, String str);
    }

    public static String callCallback(Callback cb) {
        return cb.method(1234L, (short)1234, 1234, 1234.5, "1234");
    }
}