io.camunda.operate.webapp.api.v1.entities.Results Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.operate.webapp.api.v1.entities;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
public class Results {
private List items = new ArrayList<>();
private Object[] sortValues = new Object[] {};
private long total;
public long getTotal() {
return total;
}
public Results setTotal(final long total) {
this.total = total;
return this;
}
public List getItems() {
return items;
}
public Results setItems(final List items) {
this.items = items;
return this;
}
public Object[] getSortValues() {
return sortValues;
}
public Results setSortValues(final Object[] sortValues) {
this.sortValues = sortValues;
return this;
}
@Override
public int hashCode() {
return Objects.hash(items, Arrays.hashCode(sortValues), total);
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final Results> results = (Results>) o;
return total == results.total
&& Objects.equals(items, results.items)
&& Arrays.equals(sortValues, results.sortValues);
}
@Override
public String toString() {
return "Results{"
+ "items="
+ items
+ ", sortValues="
+ Arrays.toString(sortValues)
+ ", total="
+ total
+ '}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy