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.
@OpenApiAll @FunctionalInterface public interface PriorityProvider
An interface for marking objects that provide a priority.
-
-
Field Summary
Fields Modifier and Type Field Description static int
HIGH_PRIORITY
High priority.static int
LOW_PRIORITY
Low priority.static int
MEDIUM_PRIORITY
Medium priority.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getPriority()
Returns priority of this object.static void
sort(java.util.List<? extends PriorityProvider> providers)
Sorts given list of providers by priority
-
-
-
Field Detail
-
HIGH_PRIORITY
static final int HIGH_PRIORITY
High priority.- See Also:
- Constant Field Values
-
MEDIUM_PRIORITY
static final int MEDIUM_PRIORITY
Medium priority.- See Also:
- Constant Field Values
-
LOW_PRIORITY
static final int LOW_PRIORITY
Low priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
int getPriority()
Returns priority of this object.- Returns:
- priority of this object.
-
sort
static void sort(java.util.List<? extends PriorityProvider> providers)
Sorts given list of providers by priority- Parameters:
providers
- providers
-
-