commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [collections] Observable next steps
Date Wed, 28 May 2003 21:11:48 GMT
From: "Shapira, Yoav" <Yoav.Shapira@mpi.com>
>> CollectionChangeEvent:
>>  Collection collection - the collection (current reference, ie. after
>> change)
>>  int numberChanged - the number of elements changing
>>  int changeIndex - for Lists, the index where the change starts
>>  Object changed - the value/collection being added/removed/changed
>>  boolean bulkOperation - true if addAll() etc. or clear()
>>  int oldSize - size before change
>>  int newSize - size after change
>>  boolean sizeChanged - (derived from previous two)

> Why is changeIndex required?

Change index allows full discovery of the change that occured for List
instances. The change index is the index in the List that the change started
at. For other collections the field is of no use.

Stephen


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message