यहाँ मेरी नमूना जावा कोड है लैम्ब्डा श्रृंखला में खोज रोक:ग्रहण `ओपन कॉल hierarchy`
public class Test {
public static void main(String[] args) {
methodDepth0(
()->
methodDepth1(
()->
methodDepth2()
)
);
}
static Object methodDepth2() {
return null;
}
interface MyIF {
void call();
}
static void methodDepth0(MyIF myIf){
myIf.call();
}
interface MyIF2 {
void call();
}
static void methodDepth1(MyIF2 myIf2){
myIf2.call();
}
}
जब मैं ग्रहण से विधि methodDepth2()
की कॉल पदानुक्रम (4.4), खोलने open call hierarchy
अगले फोन करने वाले खोज रोक:
मैं क्या उम्मीद विधि methodDepth1()
जो main
विधि जब तक दिखाने की कॉल पदानुक्रम खोलने की तरह है।
एक त्वरित पैच: https://goo.gl/2R0xH4 – andyf