Mercurial Hosting > luan
comparison core/src/luan/AbstractLuanTable.java @ 224:05eb2837ddbf
change LuanTable.put() to not return old value
git-svn-id: https://luan-java.googlecode.com/svn/trunk@225 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 21 Jul 2014 09:27:06 +0000 |
parents | b76fcb72d97d |
children | ef39bc4d3f70 |
comparison
equal
deleted
inserted
replaced
223:a9fe265dbac3 | 224:05eb2837ddbf |
---|---|
28 | 28 |
29 @Override public final String toString() { | 29 @Override public final String toString() { |
30 return type() + ": " + Integer.toHexString(hashCode()); | 30 return type() + ": " + Integer.toHexString(hashCode()); |
31 } | 31 } |
32 | 32 |
33 @Override public Object put(Object key,Object val) { | 33 @Override public void put(Object key,Object val) { |
34 throw new UnsupportedOperationException("can't put into a "+type()); | 34 throw new UnsupportedOperationException("can't put into a "+type()); |
35 } | 35 } |
36 | 36 |
37 @Override public void insert(int pos,Object value) { | 37 @Override public void insert(int pos,Object value) { |
38 throw new UnsupportedOperationException("can't insert into a "+type()); | 38 throw new UnsupportedOperationException("can't insert into a "+type()); |