Hi,

this is not clearly defined anywhere, and I was always working under the 
assumption that the order is not preserved. This potentially allows more 
optimizations by the system, and for example in case of merging windows we 
don't know the order of elements in a ListState after a merge.

Best,
Aljoscha

> On 6. Sep 2018, at 08:19, vino yang <yanghua1...@gmail.com> wrote:
> 
> Hi Alexey,
> 
> The answer is Yes, which preserves the semantics of the List's order of 
> elements.
> 
> Thank, vino.
> 
> Alexey Trenikhun <yen...@msn.com <mailto:yen...@msn.com>> 于2018年9月6日周四 
> 上午10:55写道:
> Hello,
> Does keyed managed ListState<T> preserve elements order, for example if I 
> call listState.add(e1); listState.add(e2); listState.add(e3); , does 
> ListState<T> guarantee that listState.get() will return elements in order 
> they were added (e1, e2, e3)
> 
> Alexey
> 
> 

Reply via email to