-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate ToChar/Short/ByteFunction interfaces and use in chunk apis (#…
- Loading branch information
Showing
13 changed files
with
122 additions
and
7 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
engine/primitive/src/main/java/io/deephaven/engine/primitive/function/ToByteFunction.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,24 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
// ****** AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY | ||
// ****** Edit ToCharFunction and run "./gradlew replicatePrimitiveInterfaces" to regenerate | ||
// | ||
// @formatter:off | ||
package io.deephaven.engine.primitive.function; | ||
|
||
/** | ||
* Functional interface to apply an operation to an object and produce a {@code byte}. | ||
* | ||
* @param <T> the object type that this function applies to | ||
*/ | ||
@FunctionalInterface | ||
public interface ToByteFunction<T> { | ||
/** | ||
* Applies this function to the given argument of type {@link T}. | ||
* | ||
* @param value the argument to the function | ||
* @return the byte result | ||
*/ | ||
byte applyAsByte(T value); | ||
} |
20 changes: 20 additions & 0 deletions
20
engine/primitive/src/main/java/io/deephaven/engine/primitive/function/ToCharFunction.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,20 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
package io.deephaven.engine.primitive.function; | ||
|
||
/** | ||
* Functional interface to apply an operation to an object and produce a {@code char}. | ||
* | ||
* @param <T> the object type that this function applies to | ||
*/ | ||
@FunctionalInterface | ||
public interface ToCharFunction<T> { | ||
/** | ||
* Applies this function to the given argument of type {@link T}. | ||
* | ||
* @param value the argument to the function | ||
* @return the char result | ||
*/ | ||
char applyAsChar(T value); | ||
} |
24 changes: 24 additions & 0 deletions
24
engine/primitive/src/main/java/io/deephaven/engine/primitive/function/ToFloatFunction.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,24 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
// ****** AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY | ||
// ****** Edit ToCharFunction and run "./gradlew replicatePrimitiveInterfaces" to regenerate | ||
// | ||
// @formatter:off | ||
package io.deephaven.engine.primitive.function; | ||
|
||
/** | ||
* Functional interface to apply an operation to an object and produce a {@code float}. | ||
* | ||
* @param <T> the object type that this function applies to | ||
*/ | ||
@FunctionalInterface | ||
public interface ToFloatFunction<T> { | ||
/** | ||
* Applies this function to the given argument of type {@link T}. | ||
* | ||
* @param value the argument to the function | ||
* @return the float result | ||
*/ | ||
float applyAsFloat(T value); | ||
} |
24 changes: 24 additions & 0 deletions
24
engine/primitive/src/main/java/io/deephaven/engine/primitive/function/ToShortFunction.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,24 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
// ****** AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY | ||
// ****** Edit ToCharFunction and run "./gradlew replicatePrimitiveInterfaces" to regenerate | ||
// | ||
// @formatter:off | ||
package io.deephaven.engine.primitive.function; | ||
|
||
/** | ||
* Functional interface to apply an operation to an object and produce a {@code short}. | ||
* | ||
* @param <T> the object type that this function applies to | ||
*/ | ||
@FunctionalInterface | ||
public interface ToShortFunction<T> { | ||
/** | ||
* Applies this function to the given argument of type {@link T}. | ||
* | ||
* @param value the argument to the function | ||
* @return the short result | ||
*/ | ||
short applyAsShort(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
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