forked from finos/waltz
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Change format of filter text #CTCTOWALTZ-2560 finos#6221
- Loading branch information
1 parent
df5a58c
commit 69688e7
Showing
5 changed files
with
145 additions
and
75 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
waltz-model/src/main/java/org/finos/waltz/model/report_grid/FilterOperator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.finos.waltz.model.report_grid; | ||
|
||
import java.util.Optional; | ||
|
||
public enum FilterOperator { | ||
CONTAINS_OPTION, | ||
CONTAINS_STRING; | ||
|
||
public static Optional<FilterOperator> parseString(String operator) { | ||
if (operator.equalsIgnoreCase(CONTAINS_OPTION.name())) { | ||
return Optional.of(CONTAINS_OPTION); | ||
} else if (operator.equalsIgnoreCase(CONTAINS_STRING.name())) { | ||
return Optional.of(CONTAINS_STRING); | ||
} else { | ||
return Optional.empty(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters