package com.skyline.electricity.pojo;
|
|
public class Path
|
{
|
private boolean show;
|
private int width;
|
private Material material;
|
private int resolution;
|
private int leadTime;
|
private int trailTime;
|
|
public boolean isShow() {
|
return this.show;
|
}
|
|
public int getWidth() {
|
return this.width;
|
}
|
|
public Material getMaterial() {
|
return this.material;
|
}
|
|
public int getResolution() {
|
return this.resolution;
|
}
|
|
public int getLeadTime() {
|
return this.leadTime;
|
}
|
|
public int getTrailTime() {
|
return this.trailTime;
|
}
|
|
public void setShow(final boolean show) {
|
this.show = show;
|
}
|
|
public void setWidth(final int width) {
|
this.width = width;
|
}
|
|
public void setMaterial(final Material material) {
|
this.material = material;
|
}
|
|
public void setResolution(final int resolution) {
|
this.resolution = resolution;
|
}
|
|
public void setLeadTime(final int leadTime) {
|
this.leadTime = leadTime;
|
}
|
|
public void setTrailTime(final int trailTime) {
|
this.trailTime = trailTime;
|
}
|
|
@Override
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (!(o instanceof Path)) {
|
return false;
|
}
|
final Path other = (Path)o;
|
if (!other.canEqual(this)) {
|
return false;
|
}
|
if (this.isShow() != other.isShow()) {
|
return false;
|
}
|
if (this.getWidth() != other.getWidth()) {
|
return false;
|
}
|
final Object this$material = this.getMaterial();
|
final Object other$material = other.getMaterial();
|
if (this$material == null) {
|
if (other$material == null) {
|
return this.getResolution() == other.getResolution() && this.getLeadTime() == other.getLeadTime() && this.getTrailTime() == other.getTrailTime();
|
}
|
}
|
else if (this$material.equals(other$material)) {
|
return this.getResolution() == other.getResolution() && this.getLeadTime() == other.getLeadTime() && this.getTrailTime() == other.getTrailTime();
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof Path;
|
}
|
|
@Override
|
public int hashCode() {
|
final int PRIME = 59;
|
int result = 1;
|
result = result * 59 + (this.isShow() ? 79 : 97);
|
result = result * 59 + this.getWidth();
|
final Object $material = this.getMaterial();
|
result = result * 59 + (($material == null) ? 43 : $material.hashCode());
|
result = result * 59 + this.getResolution();
|
result = result * 59 + this.getLeadTime();
|
result = result * 59 + this.getTrailTime();
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
return "Path(show=" + this.isShow() + ", width=" + this.getWidth() + ", material=" + this.getMaterial() + ", resolution=" + this.getResolution() + ", leadTime=" + this.getLeadTime() + ", trailTime=" + this.getTrailTime() + ")";
|
}
|
}
|