1 package com.griddynamics.jagger.engine.e1.services.data.service;
3 import com.griddynamics.jagger.dbapi.dto.MetricNameDto;
22 private MetricNameDto metricNameDto;
25 private boolean summaryAvailable =
false;
28 private boolean plotAvailable =
false;
31 this.metricNameDto = metricNameDto;
41 return metricNameDto.getMetricName();
46 return metricNameDto.getMetricDisplayName();
51 return summaryAvailable;
55 this.summaryAvailable = summaryAvailable;
64 this.plotAvailable = plotAvailable;
69 if (
this == o)
return true;
70 if (o == null || getClass() != o.getClass())
return false;
74 if (plotAvailable != that.plotAvailable)
return false;
75 if (summaryAvailable != that.summaryAvailable)
return false;
76 if (!metricNameDto.equals(that.metricNameDto))
return false;
83 int result = metricNameDto.hashCode();
84 result = 31 * result + (summaryAvailable ? 1 : 0);
85 result = 31 * result + (plotAvailable ? 1 : 0);
91 return "MetricEntity{" +
92 "metricNameDto=" + metricNameDto +
93 ", summaryAvailable=" + summaryAvailable +
94 ", plotAvailable=" + plotAvailable +