//
|
// Source code recreated from a .class file by IntelliJ IDEA
|
// (powered by FernFlower decompiler)
|
//
|
|
package org.jeecg.modules.doc.entity;
|
|
public class Range {
|
private int start;
|
private int length;
|
|
public Range() {
|
}
|
|
public int getStart() {
|
return this.start;
|
}
|
|
public int getLength() {
|
return this.length;
|
}
|
|
public void setStart(final int start) {
|
this.start = start;
|
}
|
|
public void setLength(final int length) {
|
this.length = length;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
} else if (!(o instanceof Range)) {
|
return false;
|
} else {
|
Range other = (Range)o;
|
if (!other.canEqual(this)) {
|
return false;
|
} else if (this.getStart() != other.getStart()) {
|
return false;
|
} else {
|
return this.getLength() == other.getLength();
|
}
|
}
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof Range;
|
}
|
|
public int hashCode() {
|
boolean PRIME = true;
|
int result = 1;
|
result = result * 59 + this.getStart();
|
result = result * 59 + this.getLength();
|
return result;
|
}
|
|
public String toString() {
|
return "Range(start=" + this.getStart() + ", length=" + this.getLength() + ")";
|
}
|
}
|