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

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

The newest version!
package prompto.debug.response;

import java.util.Objects;

import prompto.debug.stack.IStack;
import prompto.debug.stack.LeanStack;

public class GetWorkerStackDebugResponse implements IDebugResponse {

	LeanStack stack;
	
	public GetWorkerStackDebugResponse() {
		this.stack = new LeanStack();
	}

	public GetWorkerStackDebugResponse(IStack stack) {
		this.stack = new LeanStack(stack);
	}
	
	public LeanStack getStack() {
		return stack;
	}
	
	public void setStack(LeanStack stack) {
		this.stack = stack;
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(stack);
	}

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


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy