We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d89bd2 commit 1ae99fcCopy full SHA for 1ae99fc
1 file changed
src/net/sharksystem/asap/util/Helper.java
@@ -55,4 +55,26 @@ public static Set<CharSequence> string2CharSequenceSet(String s) {
55
56
return charSet;
57
}
58
+
59
+ public static ArrayList set2arraylist(Set aSet) {
60
+ ArrayList aList = new ArrayList();
61
+ if(aSet == null) return aList;
62
63
+ for(Object o : aSet) {
64
+ aList.add(o);
65
+ }
66
67
+ return aList;
68
69
70
+ public static Set list2set(List aList) {
71
+ Set aSet = new HashSet();
72
+ if(aList == null) return aSet;
73
74
+ for(Object o : aList) {
75
+ aSet.add(o);
76
77
78
+ return aSet;
79
80
0 commit comments