Class SeverityLevelComparator
java.lang.Object
com.vaadin.appsec.backend.model.dto.SeverityLevelComparator
- All Implemented Interfaces:
Comparator<SeverityLevel>
Comparator for severity levels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(SeverityLevel o1, SeverityLevel o2) static intcompareStatic(SeverityLevel o1, SeverityLevel o2) Compares severity levels based on their ordinal number.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SeverityLevelComparator
public SeverityLevelComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<SeverityLevel>
-
compareStatic
Compares severity levels based on their ordinal number.- Parameters:
o1- the severity level 1o2- the severity level 2- Returns:
- the int result of the comparison
-