Example #1
0
 public Realm(Realm realm) {
   this.id = realm.getId();
   this.domain = realm.getDomain();
   this.created = realm.getCreated();
   this.updated = realm.getUpdated();
   this.enabled = realm.isEnabled();
 }
Example #2
0
 @Override
 public boolean equals(Object object) {
   if (this == object) return true;
   if (!super.equals(object) && !(object instanceof Realm)) return false;
   Realm that = (Realm) object;
   if ((getId() != null) && !getId().equals(that.getId())) return false;
   if ((getDomain() != null) && !getDomain().equals(that.getDomain())) return false;
   if (isEnabled() != that.isEnabled()) return false;
   return true;
 }