This commit is contained in:
RedKale
2016-03-25 09:25:56 +08:00
parent bb5a19b338
commit 6b28ed7185

View File

@@ -65,6 +65,12 @@ public final class Flipper implements Serializable {
return this;
}
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
public Flipper clone() {
return new Flipper(this.size, this.page, this.sort);
}
public int index() {
return (getPage() - 1) * getSize();
}