Mercurial Hosting > luan
comparison core/src/luan/AbstractLuanTable.java @ 274:8afe9f2fdfec
AB testing, not fully tested
git-svn-id: https://luan-java.googlecode.com/svn/trunk@275 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 10 Nov 2014 03:28:32 +0000 |
parents | b25feac318d8 |
children | 8870840251ea |
comparison
equal
deleted
inserted
replaced
273:073044e3ac03 | 274:8afe9f2fdfec |
---|---|
74 } | 74 } |
75 | 75 |
76 @Override public void setMetatable(LuanTable metatable) { | 76 @Override public void setMetatable(LuanTable metatable) { |
77 throw new UnsupportedOperationException("can't set a metatable on a "+type()); | 77 throw new UnsupportedOperationException("can't set a metatable on a "+type()); |
78 } | 78 } |
79 | |
80 @Override public LuanTable cloneTable() { | |
81 return isList() ? new LuanTableImpl(new ArrayList<Object>(asList())) : new LuanTableImpl(new HashMap<Object,Object>(asMap())); | |
82 } | |
79 } | 83 } |