Removed stream usage from MentorManager.
This commit is contained in:
		| @@ -117,7 +117,14 @@ public class MentorManager | ||||
| 	 | ||||
| 	public boolean isMentee(int objectId) | ||||
| 	{ | ||||
| 		return _menteeData.values().stream().anyMatch(map -> map.containsKey(objectId)); | ||||
| 		for (Map<Integer, Mentee> map : _menteeData.values()) | ||||
| 		{ | ||||
| 			if (map.containsKey(objectId)) | ||||
| 			{ | ||||
| 				return true; | ||||
| 			} | ||||
| 		} | ||||
| 		return false; | ||||
| 	} | ||||
| 	 | ||||
| 	public Map<Integer, Map<Integer, Mentee>> getMentorData() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment