public Team getTeamByID(int id) { for (Team team : this.getTeams().values()) { if (team.getId() == id) return team; } return null; }
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Team)) return false; Team other = (Team) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.id == null && other.getId() == null) || (this.id != null && this.id.equals(other.getId()))) && ((this.name == null && other.getName() == null) || (this.name != null && this.name.equals(other.getName()))) && ((this.description == null && other.getDescription() == null) || (this.description != null && this.description.equals(other.getDescription()))) && ((this.hasAllCompanies == null && other.getHasAllCompanies() == null) || (this.hasAllCompanies != null && this.hasAllCompanies.equals(other.getHasAllCompanies()))) && ((this.hasAllInventory == null && other.getHasAllInventory() == null) || (this.hasAllInventory != null && this.hasAllInventory.equals(other.getHasAllInventory()))) && ((this.teamAccessType == null && other.getTeamAccessType() == null) || (this.teamAccessType != null && this.teamAccessType.equals(other.getTeamAccessType()))) && ((this.companyIds == null && other.getCompanyIds() == null) || (this.companyIds != null && java.util.Arrays.equals(this.companyIds, other.getCompanyIds()))) && ((this.adUnitIds == null && other.getAdUnitIds() == null) || (this.adUnitIds != null && java.util.Arrays.equals(this.adUnitIds, other.getAdUnitIds()))); __equalsCalc = null; return _equals; }
@Override public String toString() { return "{\"EmployeeId\":\"" + employeeId + "\"," + "\"EmployeeName\":\"" + employeeName + "\"," + "\"ManagerId\":" + (manager == null ? "null" : "\"" + manager.getId() + "\"") + "," + "\"RoomId\":" + (room == null ? "null" : "\"" + room.getId() + "\"") + "," + "\"TeamId\":" + (team == null ? "null" : "\"" + team.getId() + "\"") + "," + "\"Location\":" + (location == null ? "null" : "{\"City\":" + (location.getCity() == null ? "null" : "{\"PostalCode\":\"" + location.getCity().getPostalCode() + "\"," + "\"CityName\":\"" + location.getCity().getCityName() + "\"}") + "," + "\"Country\":\"" + location.getCountry() + "\"}") + "," + "\"Age\":" + age + "," + "\"EntryDate\":" + (entryDate == null ? "null" : "\"" + DateFormat.getInstance().format(entryDate.getTime()) + "\"") + "," + "\"ImageUrl\":\"" + imageUrl + "\"}"; }
public Team.ID getId() { return team.getId(); }