Package com.atlassian.bitbucket.util
Interface Weighted
- All Known Implementing Classes:
AbstractScmRequestHandlerModuleDescriptor
,BaseScmHookModuleDescriptor
,BaseWeightedModuleDescriptor
,CommitPropertyConfigurationModuleDescriptor
,HomeUpdateHandlerModuleDescriptor
,HttpAuthenticationFailureHandlerModuleDescriptor
,HttpAuthenticationHandlerModuleDescriptor
,HttpAuthenticationSuccessHandlerModuleDescriptor
,HttpScmRequestHandlerModuleDescriptor
,MigrationHandlerModuleDescriptor
,ScmModuleDescriptor
,ScmRequestCheckModuleDescriptor
,SshAuthenticationFailureHandlerModuleDescriptor
,SshAuthenticationHandlerModuleDescriptor
,SshAuthenticationSuccessHandlerModuleDescriptor
,SshCommandFactoryModuleDescriptor
,SshScmRequestHandlerModuleDescriptor
,UserErasureModuleDescriptor
public interface Weighted
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).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<Weighted>
Note that this comparator only considers weight. -
Method Summary
-
Field Details
-
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()
-
-
Method Details
-
getWeight
int getWeight()- Returns:
- the weight of this item (lower weight first, higher weight lower)
-