-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to Optimize processing of the Location Hierarchy (#14)
* Perform parallel Processing of Location Hierarchy * Refactor location hieranchy processing for optimization * Optimization PR Clean up * Clean up
- Loading branch information
1 parent
b6ce179
commit 6e60aba
Showing
7 changed files
with
197 additions
and
165 deletions.
There are no files selected for viewing
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
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,10 @@ | ||
package org.smartregister.utils; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
|
||
public class Utils { | ||
public static String cleanIdString(String idString) { | ||
return StringUtils.isNotBlank(idString) && idString.contains(Constants.SLASH_UNDERSCORE) ? | ||
idString.substring(0, idString.indexOf(Constants.SLASH_UNDERSCORE)) : idString; | ||
} | ||
} |
Oops, something went wrong.