-
-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove capturing lambdas when updating swim and step height attributes
- Loading branch information
1 parent
b1206bb
commit 4e2097b
Showing
3 changed files
with
36 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package mekanism.api.functions; | ||
|
||
import java.util.function.Function; | ||
|
||
/** | ||
* Represents a function that produces a float-valued result. This is the {@code float}-producing primitive specialization for {@link Function}. | ||
* | ||
* <p>This is a <a href="package-summary.html">functional interface</a> | ||
* whose functional method is {@link #applyAsFloat(Object)}. | ||
* | ||
* @param <T> the type of the input to the function | ||
* | ||
* @see Function | ||
* @since 10.5.15 | ||
*/ | ||
@FunctionalInterface | ||
public interface ToFloatFunction<T> { | ||
|
||
/** | ||
* Applies this function to the given argument. | ||
* | ||
* @param value the function argument | ||
* @return the function result | ||
*/ | ||
float applyAsFloat(T 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