Question regarding Lemur VersionedList


#1

Hi

VersionedList handles version when added/remove by index add( int i, T val ), remove( int i ) but not when added/removed by objetct add( Object arg ), remove( Object arg). Any reason for not considering the later one ?


#2

Are you seeing that in practice or just guessing from the code?

AbstractList.add(object) should be calling add(i, object). The javadoc for abstract list is pretty clear which methods need to be overridden to support add/removing items:

https://docs.oracle.com/javase/7/docs/api/java/util/AbstractList.html


#3

My bad, Sorry, I did not look at AbstractList.
Yes it was a guess from code, I was feeling so sure about that I even did not test it in code.
Sorry for bothering. :sweat: