All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.pmckeown.rest.model.Metrics Maven / Gradle / Ivy

package io.github.pmckeown.rest.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * Model class for the Project Metrics object
 *
 * @author Paul McKeown
 */
public class Metrics {

    private int inheritedRiskScore;

    @JsonCreator
    public Metrics(@JsonProperty("inheritedRiskScore") int inheritedRiskScore) {
        this.inheritedRiskScore = inheritedRiskScore;
    }

    public int getInheritedRiskScore() {
        return inheritedRiskScore;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy