Class AlertRiskTableCellItem

    • Method Detail

      • getRisk

        public int getRisk()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getItemForRisk

        public static AlertRiskTableCellItem getItemForRisk​(int risk)
        Returns an AlertTableCellItem for the given risk. If the risk is -1 the returned AlertTableCellItem will be NO_RISK_CELL_ITEM.

        If the given risk is not -1 but it's not one of the risks defined an UNDEFINED_RISK_CELL_ITEM will be returned.

        Parameters:
        risk - the risk of the alert
        Returns:
        the AlertTableCellItem for the given risk.
        See Also:
        NO_RISK_CELL_ITEM, UNDEFINED_RISK_CELL_ITEM