io.swagger.model.Data Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spl-evaluation-java Show documentation
Show all versions of spl-evaluation-java Show documentation
Stochastice Performance Logic is a formalism for capturing performance
assumptions. It is, for example, possible to capture assumption that
newer version of a function bar is faster than the previous version or
that library foobar is faster than library barfoo when rendering
antialiased text.
The purpose of this framework is to allow evaluation of SPL formulas
inside Java applications.
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Data
*/
public class Data {
@JsonProperty("units")
private String units = null;
@JsonProperty("data")
private List> data = new ArrayList>();
public Data units(String units) {
this.units = units;
return this;
}
/**
* Units of values (all have the same)
* @return units
**/
@ApiModelProperty(example = "ns/op", required = true, value = "Units of values (all have the same)")
public String getUnits() {
return units;
}
public void setUnits(String units) {
this.units = units;
}
public Data data(List> data) {
this.data = data;
return this;
}
public Data addDataItem(List dataItem) {
this.data.add(dataItem);
return this;
}
/**
* Values separated by distinct measurements (for example JMH forks - different JVM instances).
* @return data
**/
@ApiModelProperty(value = "Values separated by distinct measurements (for example JMH forks - different JVM instances).")
public List> getData() {
return data;
}
public void setData(List> data) {
this.data = data;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Data data = (Data) o;
return Objects.equals(this.units, data.units) &&
Objects.equals(this.data, data.data);
}
@Override
public int hashCode() {
return Objects.hash(units, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Data {\n");
sb.append(" units: ").append(toIndentedString(units)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}