Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Delegates/Java/delegates-4.java
Normal file
17
Task/Delegates/Java/delegates-4.java
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package delegate;
|
||||
|
||||
@FunctionalInterface
|
||||
/* package */ interface $Delegator extends Delegator {
|
||||
@Override
|
||||
public default Delegator delegate(Thingable thingable) {
|
||||
return new_(thingable);
|
||||
}
|
||||
|
||||
public static $Delegator new_() {
|
||||
return new_(() -> null);
|
||||
}
|
||||
|
||||
public static $Delegator new_(Thingable thingable) {
|
||||
return () -> thingable;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue