All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prompto.debug.response.GetWorkersDebugResponse Maven / Gradle / Ivy

The newest version!
package prompto.debug.response;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;

import prompto.debug.worker.IWorker;

public class GetWorkersDebugResponse implements IDebugResponse {
	
	List workers;
	
	public GetWorkersDebugResponse() {
	}
	
	public GetWorkersDebugResponse(Collection workers) {
		this.workers = new ArrayList<>(workers);
	}
	
	public List getWorkers() {
		return workers;
	}
	
	public void setWorkers(List workers) {
		this.workers = workers;
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(workers);
	}

	@Override
	public boolean equals(Object other) {
		return this == other || (other instanceof GetWorkersDebugResponse && ((GetWorkersDebugResponse)other).equals(this));
	}
	
	public boolean equals(GetWorkersDebugResponse other) {
		return Objects.equals(workers, other.workers);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy