- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
public AllianceEntity getByMember(BigInteger dcgId) {
for (AllianceEntity alliance : getAll()) {
if (String.valueOf(alliance.getAdminDcgId()).equals(String.valueOf(dcgId))) {
return alliance;
}
for (BigInteger memberDcgId : alliance.getMembersAsList()) {
if (String.valueOf(memberDcgId).equals(String.valueOf(dcgId))) {
return alliance;
}
}
for (BigInteger officerDcgId : alliance.getOfficersAsList()) {
if (String.valueOf(officerDcgId).equals(String.valueOf(dcgId))) {
return alliance;
}
}
}
return null;
}
Комментарии (0) RSS
Добавить комментарий