module merge util module naming changed to use "-"

This commit is contained in:
Vladimir Enchev
2014-05-15 10:00:17 +03:00
parent 4b14fd1a19
commit 012a4c40be
7 changed files with 56 additions and 3 deletions

24
utils/utils.android.ts Normal file
View File

@@ -0,0 +1,24 @@
export class Collections {
public static stringArrayToStringSet(str: string[]): any {
var hashSet = new java.util.HashSet();
if ("undefined" != typeof str) {
for (var element in str) {
hashSet.add('' + str[element]);
}
}
return hashSet;
}
public static stringSetToStringArray(stringSet: any): string[] {
var arr = [];
if ("undefined" != typeof stringSet) {
var it = stringSet.iterator();
while (it.hasNext()) {
var element = '' + it.next();
arr.push(element);
}
}
return arr;
}
}