Skip to content

Commit

Permalink
[core] AddColumn move support before and last.
Browse files Browse the repository at this point in the history
  • Loading branch information
joyCurry30 committed May 17, 2024
1 parent a77dac3 commit 6c34050
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ public enum MoveType {
LAST
}

// Existing factory methods
public static Move first(String fieldName) {
return new Move(fieldName, null, MoveType.FIRST);
}
Expand All @@ -425,12 +424,10 @@ public static Move after(String fieldName, String referenceFieldName) {
return new Move(fieldName, referenceFieldName, MoveType.AFTER);
}

// New factory method for BEFORE
public static Move before(String fieldName, String referenceFieldName) {
return new Move(fieldName, referenceFieldName, MoveType.BEFORE);
}

// New factory method for LAST
public static Move last(String fieldName) {
return new Move(fieldName, null, MoveType.LAST);
}
Expand Down

0 comments on commit 6c34050

Please sign in to comment.