This commit is contained in:
Redkale
2020-05-28 19:11:28 +08:00
parent b0b8b0db3b
commit 30a0b12020

View File

@@ -101,6 +101,11 @@ public final class Flipper implements Serializable, Cloneable {
return this;
}
public Flipper maxLimit(int maxlimit) {
setLimit(Math.max(1, Math.min(maxlimit, limit)));
return this;
}
public Flipper unlimit() {
this.limit = 0;
return this;