- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator
public class MostPowerfulLicenseComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable
The ordering for LicenseIs, as defined by this class, is to sort the
most powerful licenses first. Licenses that do not have a "more/less powerful"
relation are sorted by arbitrary, yet being consistent for a given run of the
application, criteria. Note that both licenses must be for the same feature or
at least one of them must be an _ALL_ license.
FIXME If one license has no restrictions concerning instance, project, BN,
etc. that license should also be considered "more powerful". This is not really
a problem, but we would like to display the "best" license in the About dialog,
etc.
- See Also:
- Serialized Form