Mercurial Hosting > luan
diff core/src/luan/modules/TableLuan.java @ 431:3ffe8ba5b297
TableLuan cleanup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 May 2015 21:12:48 -0600 |
parents | dae264ad6a7b |
children | d9df6d6cb927 |
line wrap: on
line diff
--- a/core/src/luan/modules/TableLuan.java Sat May 02 20:35:26 2015 -0600 +++ b/core/src/luan/modules/TableLuan.java Sat May 02 21:12:48 2015 -0600 @@ -35,11 +35,11 @@ } public static void insert(LuanTable list,int pos,Object value){ - list.insert(pos,value); + list.rawInsert(pos,value); } public static Object remove(LuanTable list,int pos) { - return list.remove(pos); + return list.rawRemove(pos); } private static interface LessThan { @@ -70,7 +70,7 @@ }; } try { - list.sort( new Comparator<Object>() { + list.rawSort( new Comparator<Object>() { public int compare(Object o1,Object o2) { return lt.isLessThan(o1,o2) ? -1 : lt.isLessThan(o2,o1) ? 1 : 0; } @@ -88,7 +88,7 @@ if( v==null ) { hasNull = true; } else if( !hasNull ) { - tbl.add(v); + tbl.rawAdd(v); } else { tbl.rawPut(i+1,v); } @@ -108,7 +108,7 @@ } public static LuanTable sub_list(LuanTable list,int from,int to) { - return list.subList(from,to); + return list.rawSubList(from,to); } public static LuanTable clone(LuanTable tbl) {