Removed stream usage from MentorManager.

This commit is contained in:
MobiusDevelopment 2023-01-08 14:26:26 +00:00
parent 39a249d4e5
commit 191437e653
26 changed files with 208 additions and 26 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()