Removed stream usage from MentorManager.
This commit is contained in:
parent
39a249d4e5
commit
191437e653
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user