com.atlassian.bitbucket.util.Weighted |
Known Indirect Subclasses
AbstractScmRequestHandlerModuleDescriptor<T>,
BaseScmHookModuleDescriptor<T>,
BaseWeightedModuleDescriptor<T>,
HomeUpdateHandlerModuleDescriptor,
HttpAuthenticationFailureHandlerModuleDescriptor,
HttpAuthenticationHandlerModuleDescriptor,
HttpAuthenticationSuccessHandlerModuleDescriptor,
HttpScmRequestHandlerModuleDescriptor,
MigrationHandlerModuleDescriptor,
ScmModuleDescriptor,
ScmRequestCheckModuleDescriptor,
SshAuthenticationFailureHandlerModuleDescriptor,
SshAuthenticationHandlerModuleDescriptor,
SshAuthenticationSuccessHandlerModuleDescriptor,
SshCommandFactoryModuleDescriptor,
SshScmRequestHandlerModuleDescriptor,
UserErasureModuleDescriptor
|
Class Overview
An interface for objects that have a weight associated with them used for sorting.
Lower weights are first (on the top), heavier weights come last (on the bottom).
Summary
Fields |
public
static
final
Comparator<Weighted> |
COMPARABLE |
Note that this comparator only considers weight. |
Fields
public
static
final
Comparator<Weighted>
COMPARABLE
Note that this comparator only considers weight. If you use this in a SortedSet implementation,
you will lose elements with the same weight because it reports they are equal.
This is intended for use with Collections.sort()
Public Methods
public
int
getWeight
()
Returns
- the weight of this item (lower weight first, higher weight lower)