Menu dinámico en función de si el usuario está logeado o no.

This commit is contained in:
mgarcianun
2019-12-04 00:11:01 +01:00
parent d7d214f1e9
commit be46189d97
5 changed files with 159 additions and 50 deletions

View File

@@ -42,21 +42,7 @@ public class PrimaryHealthCareCenterTO implements Serializable {
public void setLocation(String description) {
this.location = description;
}
@Override
public boolean equals(Object other) {
return (other instanceof PrimaryHealthCareCenterTO) && (name != null)
? name.equals(((PrimaryHealthCareCenterTO) other).getName())
: (other == this);
}
@Override
public int hashCode() {
return (name != null)
? (this.getClass().hashCode() + name.hashCode())
: super.hashCode();
}
@Override
public String toString() {
return String.format("%s[name=%s]", getClass().getSimpleName(), getName());