How to instantiate an object that implements a java interface? (that is, 2 lambdas)

前端 未结 0 1645
感情败类
感情败类 2021-02-06 04:49

I have this Java interface:

public interface MetronomeCallback {
    void onTick(boolean tickValue);
    void onBPM(int bpm);
}

public void setMetronomeCallback(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题