aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/util/Utils.java
diff options
context:
space:
mode:
authorSotaro SUZUKI <sotaro.suzuki@architector.jp>2014-10-01 15:32:06 +0900
committerJames Moger <james.moger@gitblit.com>2014-10-06 10:08:50 -0400
commitdd21bce82da9617ff8f748f8567b0329aca07b83 (patch)
tree730a2b85b54537a016219b9a08f4d16fb82897e1 /src/main/java/com/iciql/util/Utils.java
parent06c1374cfc17bdad621f6ad5154f4de08905da99 (diff)
downloadiciql-dd21bce82da9617ff8f748f8567b0329aca07b83.tar.gz
iciql-dd21bce82da9617ff8f748f8567b0329aca07b83.zip
add support condition oneOf / noneOf
var-length parameterized IN(?, ?, ...), NOT IN(?, ?, ...) support
Diffstat (limited to 'src/main/java/com/iciql/util/Utils.java')
-rw-r--r--src/main/java/com/iciql/util/Utils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/iciql/util/Utils.java b/src/main/java/com/iciql/util/Utils.java
index 77110b8..bc636d1 100644
--- a/src/main/java/com/iciql/util/Utils.java
+++ b/src/main/java/com/iciql/util/Utils.java
@@ -28,6 +28,7 @@ import java.math.BigInteger;
import java.sql.Blob;
import java.sql.Clob;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@@ -78,6 +79,10 @@ public class Utils {
}
}
+ public static <T> Iterable<T> newArrayIterable(final T[] a) {
+ return Arrays.asList(a);
+ }
+
public static <T> ArrayList<T> newArrayList() {
return new ArrayList<T>();
}