Package com.nomagic.utils
Interface PriorityProvider
- All Known Subinterfaces:
AMConfigurator
,BrowserContextAMConfigurator
,BrowserTabTreeDragAndDropHandler
,BrowserToolbarAMConfigurator
,ConfiguratorWithPriority
,DependencyMatrixAMConfigurator
,DependencyMatrixCellAMConfigurator
,DiagramContextAMConfigurator
,DiagramContextToolbarAMConfigurator
,PriorityProvider
,RepresentationTextCreator.RepresentationTextProvider
,TargetElementAMConfigurator
- All Known Implementing Classes:
ActivityDiagramContextAMConfigurator
,ActivityDiagramShortcutsConfigurator
,AnyDiagramShortcutsConfigurator
,BaseDiagramContextAMConfigurator
,BaseDiagramContextToolbarAMConfigurator
,BaseDiagramShortcutsConfigurator
,BaseDiagramToolbarConfigurator
,ClassDiagramContextAMConfigurator
,ClassDiagramShortcutsConfigurator
,CollaborationDiagramContextAMConfigurator
,CommunicationDiagramShortcutsConfigurator
,ComponentDiagramShortcutsConfigurator
,CompositeStructureDiagramContextAMConfigurator
,DeploymentDiagramShortcutsConfigurator
,DiagramTransferableDragAndDropHandler
,ObjectDiagramShortcutsConfigurator
,PackageDiagramShortcutsConfigurator
,ProfileDiagramShortcutsConfigurator
,SequenceDiagramContextAMConfigurator
,SequenceDiagramShortcutsConfigurator
,StateDiagramContextAMConfigurator
,StateDiagramShortcutsConfigurator
,UseCaseDiagramShortcutsConfigurator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface for marking objects that provide a priority.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
High priority.static final int
Low priority.static final int
Medium priority. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns priority of this object.static void
sort
(List<? extends PriorityProvider> providers) Sorts given list of providers by priority
-
Field Details
-
HIGH_PRIORITY
static final int HIGH_PRIORITYHigh priority.- See Also:
-
MEDIUM_PRIORITY
static final int MEDIUM_PRIORITYMedium priority.- See Also:
-
LOW_PRIORITY
static final int LOW_PRIORITYLow priority.- See Also:
-
-
Method Details
-
getPriority
int getPriority()Returns priority of this object.- Returns:
- priority of this object.
-
sort
Sorts given list of providers by priority- Parameters:
providers
- providers
-