This commit is contained in:
@@ -104,6 +104,7 @@ public final class Flipper implements Serializable, Cloneable {
|
||||
return sort;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public Flipper putSortIfEmpty(String sort) {
|
||||
if (this.sort == null || this.sort.isEmpty()) {
|
||||
this.sort = sort;
|
||||
@@ -111,6 +112,13 @@ public final class Flipper implements Serializable, Cloneable {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Flipper sortIfEmpty(String sort) {
|
||||
if (this.sort == null || this.sort.isEmpty()) {
|
||||
this.sort = sort;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public void setSort(String sort) {
|
||||
if (sort != null) {
|
||||
this.sort = sort.trim();
|
||||
|
||||
Reference in New Issue
Block a user