List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:th.co.geniustree.intenship.advisor.model.CategoryAdvise.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//w w w . ja v a 2 s . c o m if (getClass() != obj.getClass()) { return false; } final CategoryAdvise other = (CategoryAdvise) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:com.autodesk.client.model.JsonApiMetaLink.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }//from w w w . jav a 2 s . com if (o == null || getClass() != o.getClass()) { return false; } JsonApiMetaLink jsonApiMetaLink = (JsonApiMetaLink) o; return Objects.equals(this.link, jsonApiMetaLink.link); }
From source file:dlauncher.modpacks.download.DefaultDownloadLocation.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w .j a v a 2 s . c o m*/ if (getClass() != obj.getClass()) { return false; } final DefaultDownloadLocation other = (DefaultDownloadLocation) obj; if (!Objects.equals(this.url, other.url)) { return false; } return true; }
From source file:com.okta.sdk.models.log.LogTransaction.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }// ww w .j av a 2s . co m if (obj == null || !(obj instanceof LogTransaction)) { return false; } final LogTransaction other = (LogTransaction) obj; return Objects.equals(this.type, other.type) && Objects.equals(this.id, other.id) && Objects.equals(this.detail, other.detail); }
From source file:konditer.client.bean.GenId.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*www .ja v a 2s . c o m*/ if (getClass() != obj.getClass()) { return false; } final GenId other = (GenId) obj; if (!Objects.equals(this.tableName, other.tableName)) { return false; } return Objects.equals(this.rowCount, other.rowCount); }
From source file:fr.mycellar.domain.image.Image.java
@Override protected boolean dataEquals(IdentifiedEntity other) { Image image = (Image) other; boolean result; if ((getContent() == null) || (image.getContent() == null)) { result = Objects.equals(getName(), image.getName()) && Objects.equals(getContentType(), image.getContentType()); } else {/* w w w . j a v a2 s .c o m*/ result = Objects.equals(getContent(), image.getContent()); } return result; }
From source file:com.offbynull.voip.kademlia.model.Node.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* w w w . ja v a 2 s . co m*/ if (getClass() != obj.getClass()) { return false; } final Node other = (Node) obj; if (!Objects.equals(this.id, other.id)) { return false; } if (!Objects.equals(this.link, other.link)) { return false; } return true; }
From source file:fr.mycellar.domain.stack.Stack.java
@Override protected boolean dataEquals(IdentifiedEntity other) { Stack stack = (Stack) other; return Objects.equals(getStack(), stack.getStack()); }
From source file:com.mesosphere.dcos.cassandra.common.tasks.CassandraDaemonStatus.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CassandraDaemonStatus)) return false; if (!super.equals(o)) return false; CassandraDaemonStatus that = (CassandraDaemonStatus) o; return Objects.equals(getMode(), that.getMode()); }
From source file:com.offbynull.voip.kademlia.model.Activity.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* w w w . ja va 2 s . c om*/ if (getClass() != obj.getClass()) { return false; } final Activity other = (Activity) obj; if (!Objects.equals(this.node, other.node)) { return false; } if (!Objects.equals(this.time, other.time)) { return false; } return true; }