Add LazyEvaluate class
This commit is contained in:
parent
a33bdf8a03
commit
88a92d399c
|
@ -0,0 +1,16 @@
|
|||
package com.baeldung.returnfirstnonnull;
|
||||
|
||||
class LazyEvaluate {
|
||||
|
||||
String methodA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
String methodB() {
|
||||
return "first non null";
|
||||
}
|
||||
|
||||
String methodC() {
|
||||
return "second non null";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue