Class HealthStatusItem

    • Constructor Detail

      • HealthStatusItem

        public HealthStatusItem​(@NotNull
                                String identity,
                                @NotNull
                                ItemCategory category,
                                @NotNull
                                Map<String,​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
                                String identity,
                                @NotNull
                                ItemCategory category,
                                @NotNull
                                ItemSeverity severity,
                                @NotNull
                                Map<String,​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 String getIdentity()
        Returns:
        problem identity - unique between items from single category
      • getAdditionalData

        @NotNull
        public Map<String,​Object> getAdditionalData()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object