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

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

The newest version!
package prompto.debug.response;

import java.util.Objects;

public class GetLineDebugResponse implements IDebugResponse {

	int lineInFile;
	int lineInMethod;
		
	public GetLineDebugResponse() {
	}

	public GetLineDebugResponse(int lineInFile, int lineInMethod) {
		this.lineInFile = lineInFile;
		this.lineInMethod = lineInMethod;
	}
	
	public int getLineInFile() {
		return lineInFile;
	}
	
	public void setLineInFile(int lineInFile) {
		this.lineInFile = lineInFile;
	}
	
	public int getLineInMethod() {
		return lineInMethod;
	}
	
	public void setLineInMethod(int lineInMethod) {
		this.lineInMethod = lineInMethod;
	}

	@Override
	public int hashCode() {
		return Objects.hash(lineInFile, lineInMethod);
	}

	@Override
	public boolean equals(Object other) {
		return this == other || (other instanceof GetLineDebugResponse && ((GetLineDebugResponse)other).equals(this));
	}
	
	public boolean equals(GetLineDebugResponse other) {
		return lineInFile == other.lineInFile && lineInMethod == other.lineInMethod;
	}
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy