Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime-compute: Add HasCase trait so that ToString and ToChar can sh…
…are javadoc
- Loading branch information
Emil Forslund
committed
May 8, 2018
1 parent
31ed3db
commit 20389e0
Showing
3 changed files
with
37 additions
and
0 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
30 changes: 30 additions & 0 deletions
30
...ime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/trait/HasCase.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,30 @@ | ||
package com.speedment.runtime.compute.trait; | ||
|
||
import com.speedment.runtime.compute.expression.Expression; | ||
|
||
/** | ||
* Trait for expressions that has {@link #toUpperCase()} and | ||
* {@link #toLowerCase()} operations. | ||
* | ||
* @author Emil Forslund | ||
* @since 3.1.0 | ||
*/ | ||
public interface HasCase<T, RESULT extends Expression<T>> { | ||
|
||
/** | ||
* Returns an expression that is equivalent to this expression, except that | ||
* results are always in upper-case letters. | ||
* | ||
* @return the upper case expression | ||
*/ | ||
RESULT toUpperCase(); | ||
|
||
/** | ||
* Returns an expression that is equivalent to this expression, except that | ||
* results are always in lower-case letters. | ||
* | ||
* @return the lower case expression | ||
*/ | ||
RESULT toLowerCase(); | ||
|
||
} |