Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

order of list elements after reading from mdsal

Hello,

I'm saving and reading a custom model to/from md-sal, which contains a list. The list contains some elements in a specific order, before i store the model, the list has the proper ordering. (expected ordering) After reading the same from md-sal, the order of elements is changed. I had expected, that the list elements would remain in the same ordering, as the java list interface specifies that the ordering will preserved. Is there some way to preserve changes to the order. I know its bad practice to rely on ordering of elements, i'm just wondering why it is like that.. Can anyone acknowloedge this behaviour ?