Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): number conversion functional interfaces
DoubleToDoubleFunction, IntToIntFunction
- Loading branch information
1 parent
52e56f4
commit c034c8d
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/main/java/org/auioc/mcmod/arnicalib/api/java/function/DoubleToDoubleFunction.java
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,8 @@ | ||
package org.auioc.mcmod.arnicalib.api.java.function; | ||
|
||
@FunctionalInterface | ||
public interface DoubleToDoubleFunction { | ||
|
||
double applyAsDouble(double value); | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/org/auioc/mcmod/arnicalib/api/java/function/IntToIntFunction.java
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,8 @@ | ||
package org.auioc.mcmod.arnicalib.api.java.function; | ||
|
||
@FunctionalInterface | ||
public interface IntToIntFunction { | ||
|
||
int applyAsInt(int value); | ||
|
||
} |
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