Mercurial Hosting > luan
comparison src/luan/LuanTable.java @ 108:3c404a296995
make Package module more standard;
return _ENV by default;
add "import" statement;
git-svn-id: https://luan-java.googlecode.com/svn/trunk@109 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 03:21:54 +0000 |
parents | 6ca02b188dba |
children | 735708619119 |
comparison
equal
deleted
inserted
replaced
107:dbf459397217 | 108:3c404a296995 |
---|---|
241 } | 241 } |
242 return list; | 242 return list; |
243 } | 243 } |
244 | 244 |
245 public void insert(int pos,Object value) { | 245 public void insert(int pos,Object value) { |
246 if( value==null ) | |
247 throw new UnsupportedOperationException(); | |
246 list().add(pos-1,value); | 248 list().add(pos-1,value); |
249 mapToList(); | |
250 } | |
251 | |
252 public void add(Object value) { | |
253 if( value==null ) | |
254 throw new UnsupportedOperationException(); | |
255 list().add(value); | |
256 mapToList(); | |
247 } | 257 } |
248 | 258 |
249 public Object remove(int pos) { | 259 public Object remove(int pos) { |
250 return list().remove(pos-1); | 260 return list().remove(pos-1); |
251 } | 261 } |