RE: [Andromda-user] Sort Collection

2004-12-07 Thread Chad Brandon
-user] Sort Collection Hi, I was trying to sort elements from a collection of value objects, so I use Collections Collections.sort(list); where list is a ArrayList. To use this class its necesary that your ValueObject implements Comparable, and extends the method compareTo. This method is like

[Andromda-user] Sort Collection

2004-12-07 Thread Daniel
Hi, I was trying to sort elements from a collection of value objects, so I use Collections Collections.sort(list); where list is a ArrayList. To use this class its necesary that your ValueObject implements Comparable, and extends the method compareTo. This method is like this: // // Attention

[Andromda-user] Sort Collection

2004-12-07 Thread Daniel
Hi, I was trying to sort elements from a collection of value objects, so I use Collections Collections.sort(list); where list is a ArrayList. To use this class its necesary that your ValueObject implements Comparable, and extends the method compareTo. This method is like this: // // Attention