Community
Participate
Working Groups
IProjectFacet and IRuntimeComponent have the following methods: getVersions() -> Set getVersions( String filter ) -> Set getSortedVersions( boolean direction ) -> List The geSortedVersions method in particular isn't well integrated. Sorting would be better as a feature of the getVersions() method. The return type is problematic too. Better semantics would be conveyed by using SortedSet rather than a List in this situation. A new enum (SortDirection) will be introduced with three items: NONE, ASCENDING and DESCENDING. A new variant of getVersions() method would be added with the following signature: getVersions( String filter, SortDirection sortDirection ) -> Set If sortDirection is not null and is not NONE, the returned set will be castable to SortedSet. The existing getSortedVersions() method will be removed.
In the description, IRuntimeComponentType should be used instead of IRuntimeComponent.
Created attachment 173332 [details] Patch
Patch released.