Skip to content

Commit 1ae99fc

Browse files
committed
sync development with makan sub project
1 parent 3d89bd2 commit 1ae99fc

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/net/sharksystem/asap/util/Helper.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,26 @@ public static Set<CharSequence> string2CharSequenceSet(String s) {
5555

5656
return charSet;
5757
}
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+
}
5880
}

0 commit comments

Comments
 (0)