Permalink
Browse files

- Buildable version.

  • Loading branch information...
1 parent a6db2ce commit 99a33e9e8c5e6ebe037c16a689bf5688c74e40f3 @sushantk committed Jan 25, 2012
Showing with 29 additions and 0 deletions.
  1. +11 −0 src/siri/SiriParameter.java
  2. +18 −0 src/siri/Util.java
@@ -0,0 +1,11 @@
+package siri;
+
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+public @interface SiriParameter {
+
+ String defaultClass() default Consts.defaultClass;
+ boolean required() default false;
+}
View
@@ -0,0 +1,18 @@
+package siri;
+
+import java.util.List;
+
+public class Util {
+
+ public static String implode(List<String> a_list, String a_seperator) {
+ String value = "";
+ int length = a_list.size();
+ for(int i = 0; i < length; i++) {
+ if(i > 0) value += a_seperator;
+ value += a_list.get(i);
+ }
+
+ return value;
+ }
+
+}

0 comments on commit 99a33e9

Please sign in to comment.