Skip to content

make utils methods public #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class UserProfileUtils {
* @return True if the map can be converted into a {@link UserProfile}.
* False if the map cannot be converted.
*/
static boolean isValidUserProfileMap(@Nonnull Map<String, Object> map) {
public static boolean isValidUserProfileMap(@Nonnull Map<String, Object> map) {
// The Map must contain a value for the user ID
if (!map.containsKey(UserProfileService.userIdKey)) {
return false;
Expand Down Expand Up @@ -71,7 +71,7 @@ static boolean isValidUserProfileMap(@Nonnull Map<String, Object> map) {
* @param map The map to construct the {@link UserProfile} from.
* @return A {@link UserProfile} instance.
*/
static UserProfile convertMapToUserProfile(@Nonnull Map<String, Object> map) {
public static UserProfile convertMapToUserProfile(@Nonnull Map<String, Object> map) {
String userId = (String) map.get(UserProfileService.userIdKey);
Map<String, Map<String, String>> experimentBucketMap = (Map<String, Map<String, String>>) map.get(UserProfileService.experimentBucketMapKey);
Map<String, Decision> decisions = new HashMap<String, Decision>(experimentBucketMap.size());
Expand Down