comparison core/src/luan/LuanPropertyTable.java @ 368:2af805677fc4

fix LuanPropertyTable.asList()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 17 Apr 2015 05:16:07 -0600
parents 1a464e090538
children 9321a33b9b1c
comparison
equal deleted inserted replaced
367:c207be7cf45d 368:2af805677fc4
2 2
3 import java.util.Set; 3 import java.util.Set;
4 import java.util.Map; 4 import java.util.Map;
5 import java.util.AbstractMap; 5 import java.util.AbstractMap;
6 import java.util.Iterator; 6 import java.util.Iterator;
7 import java.util.List;
8 import java.util.ArrayList;
7 9
8 10
9 class LuanPropertyTable extends LuanTableImpl { 11 class LuanPropertyTable extends LuanTableImpl {
10 12
11 @Override public LuanTableImpl shallowClone() { 13 @Override public LuanTableImpl shallowClone() {
53 i.remove(); 55 i.remove();
54 } 56 }
55 }; 57 };
56 } 58 }
57 59
60 @Override public List<Object> asList() {
61 List<Object> list = super.asList();
62 if( list.isEmpty() )
63 return list;
64 List<Object> rtn = new ArrayList<Object>();
65 for( Object obj : list ) {
66 rtn.add( fixValue(obj) );
67 }
68 return rtn;
69 }
70
58 } 71 }