Class HealthStatusItem

    • Constructor Detail

      • HealthStatusItem

        public HealthStatusItem​(@NotNull
                                java.lang.String identity,
                                @NotNull
                                ItemCategory category,
                                @NotNull
                                java.util.Map<java.lang.String,​java.lang.Object> additionalData)
        Creates new inspection result. Sets up category's severity as severity of this particular problem.
        Parameters:
        identity - Id for this specific problem. Expected to be unique between items from single category.
        category - Category of this problem.
        additionalData - additional data which can be used to render human visible description of the inspection instance
      • HealthStatusItem

        public HealthStatusItem​(@NotNull
                                java.lang.String identity,
                                @NotNull
                                ItemCategory category,
                                @NotNull
                                ItemSeverity severity,
                                @NotNull
                                java.util.Map<java.lang.String,​java.lang.Object> additionalData)
        Creates new inspection result.
        Parameters:
        identity - Id for this specific problem. Expected to be unique between items from single category.
        category - Category of this problem.
        severity - Severity of this particular problem.
        additionalData - additional data which can be used to render human visible description of the inspection instance
    • Method Detail

      • getIdentity

        @NotNull
        public java.lang.String getIdentity()
        Returns:
        problem identity - unique between items from single category
      • getAdditionalData

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalData()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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