diff options
Diffstat (limited to '')
-rw-r--r-- | src/comparable | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/comparable b/src/comparable index 0d3c21e..26feb1f 100644 --- a/src/comparable +++ b/src/comparable @@ -129,6 +129,15 @@ else { echo "($1) < ($2)" } fi +if [[ "${T}" = @(boolean|char|byte|short|int|long|float|double) ]]; then + function equal + { echo "($1) == ($2)" + } +else + function equal + { echo "($1).equals($2)" + } +fi function fun { echo "${Tparam}${1} ${2}(${3}${Targ})" |