ReverseString
See javadoc - uk.gov.gchq.koryphe.impl.function.ReverseString
Available since Koryphe version 1.9.0
Reverse characters in string
Examples
Reverse strings
Java
JSON
Full JSON
Python
final ReverseString function = new ReverseString();{
"class" : "ReverseString"
}{
"class" : "uk.gov.gchq.koryphe.impl.function.ReverseString"
}g.ReverseString()Input type:
java.lang.String
Example inputs:
| Input Type | Input | Result Type | Result |
|---|---|---|---|
| java.lang.String | reverse | java.lang.String | esrever |
| java.lang.String | esrever | java.lang.String | reverse |
| null | null | ||
| java.lang.Long | 54 | ClassCastException: java.lang.Long cannot be cast to java.lang.String |