package com.example.cosmosclient.entities; import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.ArrayList; import java.util.List; public class Requests { private List<Request> requests; public Requests() { } public Requests(List<Request> requests) { this.requests = requests; } public List<Request> getRequests() { return requests; } public void setRequests(List<Request> requests) { this.requests = requests; } public void addRequests(Request r) { requests.add(r); } public Request getRequest(int index) { return requests.get(index); } public void clearRequest() { requests.clear(); } public void removeRequest(int index) { requests.remove(index); } public int getRequestCount() { return requests.size(); } // @Override // public boolean equals(Object other) { // if (!(other instanceof Container)) return false; // return components.equals(((Container)other).components); // } }