@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getP999() == null) ? 0 : getP999().hashCode()); hashCode = prime * hashCode + ((getP99() == null) ? 0 : getP99().hashCode()); hashCode = prime * hashCode + ((getP95() == null) ? 0 : getP95().hashCode()); hashCode = prime * hashCode + ((getP90() == null) ? 0 : getP90().hashCode()); hashCode = prime * hashCode + ((getP85() == null) ? 0 : getP85().hashCode()); hashCode = prime * hashCode + ((getP75() == null) ? 0 : getP75().hashCode()); hashCode = prime * hashCode + ((getP50() == null) ? 0 : getP50().hashCode()); hashCode = prime * hashCode + ((getP10() == null) ? 0 : getP10().hashCode()); return hashCode; }
public Latency unmarshall(StaxUnmarshallerContext context) throws Exception { Latency latency = new Latency(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; latency.setP999(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP99(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP95(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP90(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP85(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP75(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP50(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP10(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplicationMetrics == false) return false; ApplicationMetrics other = (ApplicationMetrics) obj; if (other.getDuration() == null ^ this.getDuration() == null) return false; if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false; if (other.getRequestCount() == null ^ this.getRequestCount() == null) return false; if (other.getRequestCount() != null && other.getRequestCount().equals(this.getRequestCount()) == false) return false; if (other.getStatusCodes() == null ^ this.getStatusCodes() == null) return false; if (other.getStatusCodes() != null && other.getStatusCodes().equals(this.getStatusCodes()) == false) return false; if (other.getLatency() == null ^ this.getLatency() == null) return false; if (other.getLatency() != null && other.getLatency().equals(this.getLatency()) == false) return false; return true; }
public Latency unmarshall(StaxUnmarshallerContext context) throws Exception { Latency latency = new Latency(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; latency.setP999(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP99(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP95(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP90(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP85(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP75(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP50(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue; latency.setP10(DoubleStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplicationMetrics == false) return false; ApplicationMetrics other = (ApplicationMetrics) obj; if (other.getDuration() == null ^ this.getDuration() == null) return false; if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == false) return false; if (other.getRequestCount() == null ^ this.getRequestCount() == null) return false; if (other.getRequestCount() != null && other.getRequestCount().equals(this.getRequestCount()) == false) return false; if (other.getStatusCodes() == null ^ this.getStatusCodes() == null) return false; if (other.getStatusCodes() != null && other.getStatusCodes().equals(this.getStatusCodes()) == false) return false; if (other.getLatency() == null ^ this.getLatency() == null) return false; if (other.getLatency() != null && other.getLatency().equals(this.getLatency()) == false) return false; return true; }
return false; Latency other = (Latency) obj; if (other.getP999() == null ^ this.getP999() == null) return false; if (other.getP999() != null && other.getP999().equals(this.getP999()) == false) return false; if (other.getP99() == null ^ this.getP99() == null) return false; if (other.getP99() != null && other.getP99().equals(this.getP99()) == false) return false; if (other.getP95() == null ^ this.getP95() == null) return false; if (other.getP95() != null && other.getP95().equals(this.getP95()) == false) return false; if (other.getP90() == null ^ this.getP90() == null) return false; if (other.getP90() != null && other.getP90().equals(this.getP90()) == false) return false; if (other.getP85() == null ^ this.getP85() == null) return false; if (other.getP85() != null && other.getP85().equals(this.getP85()) == false) return false; if (other.getP75() == null ^ this.getP75() == null) return false; if (other.getP75() != null && other.getP75().equals(this.getP75()) == false) return false; if (other.getP50() == null ^ this.getP50() == null) return false; if (other.getP50() != null && other.getP50().equals(this.getP50()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getP999() != null) sb.append("P999: ").append(getP999()).append(","); if (getP99() != null) sb.append("P99: ").append(getP99()).append(","); if (getP95() != null) sb.append("P95: ").append(getP95()).append(","); if (getP90() != null) sb.append("P90: ").append(getP90()).append(","); if (getP85() != null) sb.append("P85: ").append(getP85()).append(","); if (getP75() != null) sb.append("P75: ").append(getP75()).append(","); if (getP50() != null) sb.append("P50: ").append(getP50()).append(","); if (getP10() != null) sb.append("P10: ").append(getP10()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getP999() == null) ? 0 : getP999().hashCode()); hashCode = prime * hashCode + ((getP99() == null) ? 0 : getP99().hashCode()); hashCode = prime * hashCode + ((getP95() == null) ? 0 : getP95().hashCode()); hashCode = prime * hashCode + ((getP90() == null) ? 0 : getP90().hashCode()); hashCode = prime * hashCode + ((getP85() == null) ? 0 : getP85().hashCode()); hashCode = prime * hashCode + ((getP75() == null) ? 0 : getP75().hashCode()); hashCode = prime * hashCode + ((getP50() == null) ? 0 : getP50().hashCode()); hashCode = prime * hashCode + ((getP10() == null) ? 0 : getP10().hashCode()); return hashCode; }
return false; Latency other = (Latency) obj; if (other.getP999() == null ^ this.getP999() == null) return false; if (other.getP999() != null && other.getP999().equals(this.getP999()) == false) return false; if (other.getP99() == null ^ this.getP99() == null) return false; if (other.getP99() != null && other.getP99().equals(this.getP99()) == false) return false; if (other.getP95() == null ^ this.getP95() == null) return false; if (other.getP95() != null && other.getP95().equals(this.getP95()) == false) return false; if (other.getP90() == null ^ this.getP90() == null) return false; if (other.getP90() != null && other.getP90().equals(this.getP90()) == false) return false; if (other.getP85() == null ^ this.getP85() == null) return false; if (other.getP85() != null && other.getP85().equals(this.getP85()) == false) return false; if (other.getP75() == null ^ this.getP75() == null) return false; if (other.getP75() != null && other.getP75().equals(this.getP75()) == false) return false; if (other.getP50() == null ^ this.getP50() == null) return false; if (other.getP50() != null && other.getP50().equals(this.getP50()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getP999() != null) sb.append("P999: ").append(getP999()).append(","); if (getP99() != null) sb.append("P99: ").append(getP99()).append(","); if (getP95() != null) sb.append("P95: ").append(getP95()).append(","); if (getP90() != null) sb.append("P90: ").append(getP90()).append(","); if (getP85() != null) sb.append("P85: ").append(getP85()).append(","); if (getP75() != null) sb.append("P75: ").append(getP75()).append(","); if (getP50() != null) sb.append("P50: ").append(getP50()).append(","); if (getP10() != null) sb.append("P10: ").append(getP10()); sb.append("}"); return sb.toString();