Misleading GroupingList documentation

View: New views
1 Messages — Rating Filter:   Alert me  

Misleading GroupingList documentation

by Danilo Tuler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was tricked by GroupingList documentation.
Maybe it could be improved.

It only says that "elements for which the Comparator returns 0 are
guaranteed to be contained within the same group within this
GroupingList".

My comparator implementation returned 0 for similar elements and 1 otherwise.
But in fact I think there must be a proper ordering of all elements,
because if there is an element in between two similar elements, those
two elements are not grouped.

Danilo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...