Permalink
Browse files

Add + operator support for String + {Long,Double,String}

  • Loading branch information...
1 parent b037940 commit fba1aca0aaecd375a61820fe896e9666b2f71f76 @headius committed Sep 7, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/com/headius/surinx/SimpleJavaBootstrap.java
@@ -270,6 +270,18 @@ public static final Double plus(Long a, Double b) {
return a + b;
}
+ public static final String plus(String a, Double b) {
+ return a + b;
+ }
+
+ public static final String plus(String a, Long b) {
+ return a + b;
+ }
+
+ public static final String plus(String a, String b) {
+ return a + b;
+ }
+
public static final Long minus(Long a, Long b) {
return a - b;
}

0 comments on commit fba1aca

Please sign in to comment.