PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/test/kilim/test/ex/ExInterfaceImpl.java

http://github.com/kilim/kilim
Java | 19 lines | 14 code | 5 blank | 0 comment | 0 complexity | ff405bed1ac71d615e269d3c2e35c609 MD5 | raw file
 1package kilim.test.ex;
 2
 3import kilim.*;
 4
 5interface ExInterface {
 6    int foo(float f) throws Pausable;
 7}
 8
 9public class ExInterfaceImpl extends Task implements ExInterface  {
10    public void execute() throws Pausable {
11        foo(10.2f);
12    }
13    
14    public int foo(float f) throws Pausable {
15        Task.sleep(1000);
16        
17        return (int)f;
18    }
19}