From 4176b9b53df47c2351b38695c3d899680403bed2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 21 Jan 2014 09:50:37 +0100 Subject: m + add hybrid interpolation search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/comparable | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/comparable') 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})" -- cgit v1.2.3-70-g09d2