-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
134 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package w.core; | ||
|
||
/** | ||
* @author Frank | ||
* @date 2024/4/30 19:26 | ||
*/ | ||
public abstract class AbstractService implements MyInterface { | ||
public String normalParentMethod() { | ||
return "a"; | ||
} | ||
|
||
abstract String abstractParentMethod(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package w.core; | ||
|
||
/** | ||
* @author Frank | ||
* @date 2024/4/30 19:29 | ||
*/ | ||
public interface MyInterface { | ||
default String interfaceDefaultMethod() { | ||
return "default"; | ||
} | ||
|
||
String interfaceMethod(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package w.core; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author Frank | ||
* @date 2024/4/30 19:30 | ||
*/ | ||
public class R extends AbstractService { | ||
@Override | ||
String abstractParentMethod() { | ||
return "R.abstractParentMethod"; | ||
} | ||
|
||
@Override | ||
public String interfaceMethod() { | ||
return "R.interfaceMethod"; | ||
} | ||
|
||
public int recursive(int n) { | ||
if (n <= 1) return 1; | ||
UUID.randomUUID(); | ||
return recursive(n - 1) + recursive(n - 2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package w.core; | ||
|
||
/** | ||
* @author Frank | ||
* @date 2024/4/30 19:30 | ||
*/ | ||
public class R2 extends AbstractService { | ||
@Override | ||
String abstractParentMethod() { | ||
return "R2.abstractParentMethod"; | ||
} | ||
|
||
@Override | ||
public String interfaceMethod() { | ||
return "R2.interfaceMethod"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters