Example usage for java.util Objects equals

List of usage examples for java.util Objects equals

Introduction

In this page you can find the example usage for java.util Objects equals.

Prototype

public static boolean equals(Object a, Object b) 

Source Link

Document

Returns true if the arguments are equal to each other and false otherwise.

Usage

From source file:com.autodesk.client.model.CreateRefDataMeta.java

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }/* w w w  .  j  a v  a  2 s .  co m*/
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    CreateRefDataMeta createRefDataMeta = (CreateRefDataMeta) o;
    return Objects.equals(this.extension, createRefDataMeta.extension);
}

From source file:com.autodesk.client.model.HubRelationships.java

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }//from  w ww. j  ava 2s  . c  o m
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    HubRelationships hubRelationships = (HubRelationships) o;
    return Objects.equals(this.projects, hubRelationships.projects);
}

From source file:eu.eubrazilcc.lvl.storage.oauth2.AuthCode.java

@Override
public boolean equals(final Object obj) {
    if (obj == null || !(obj instanceof AuthCode)) {
        return false;
    }/*w ww.  java  2s. co m*/
    final AuthCode other = AuthCode.class.cast(obj);
    return Objects.equals(code, other.code) && Objects.equals(expiresIn, other.expiresIn)
            && Objects.equals(issuedAt, other.issuedAt);
}

From source file:com.connio.sdk.resource.alert.AlertCheck.java

@Override
public boolean equals(Object o) {
    if (this == o)
        return true;
    if (o == null || getClass() != o.getClass())
        return false;
    AlertCheck that = (AlertCheck) o;//from  ww  w.  j  a va2s .c  om
    return Objects.equals(getSeverity(), that.getSeverity())
            && Objects.equals(getExpression(), that.getExpression())
            && Objects.equals(getHandlers(), that.getHandlers());
}

From source file:com.offbynull.peernetic.playground.chorddht.model.ExternalPointer.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }//from   w w w .j  a v a2s  .co  m
    if (getClass() != obj.getClass()) {
        return false;
    }
    final ExternalPointer other = (ExternalPointer) obj;
    if (!Objects.equals(this.id, other.id)) {
        return false;
    }
    if (!Objects.equals(this.address, other.address)) {
        return false;
    }
    return true;
}

From source file:com.offbynull.voip.kademlia.model.RouteTreeChangeSet.java

@Override
public boolean equals(Object obj) {
    if (obj == null) {
        return false;
    }/*from ww  w .  jav  a 2  s.c  o m*/
    if (getClass() != obj.getClass()) {
        return false;
    }
    final RouteTreeChangeSet other = (RouteTreeChangeSet) obj;
    if (!Objects.equals(this.kBucketPrefix, other.kBucketPrefix)) {
        return false;
    }
    if (!Objects.equals(this.kBucketChangeSet, other.kBucketChangeSet)) {
        return false;
    }
    return true;
}

From source file:com.vsct.dt.hesperides.indexation.model.KeyValuePropertyIndexation.java

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }//from   ww w  . j a v  a 2s. c o m
    if (obj == null || getClass() != obj.getClass()) {
        return false;
    }
    if (!super.equals(obj)) {
        return false;
    }
    final KeyValuePropertyIndexation other = (KeyValuePropertyIndexation) obj;
    return Objects.equals(this.value, other.value);
}

From source file:com.autodesk.client.model.CreateItemDataRelationshipsTip.java

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }/*w w  w  .j a v  a  2s  . c  o  m*/
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    CreateItemDataRelationshipsTip createItemDataRelationshipsTip = (CreateItemDataRelationshipsTip) o;
    return Objects.equals(this.data, createItemDataRelationshipsTip.data);
}

From source file:com.autodesk.client.model.CreateItemRelationshipsStorage.java

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }//from  w ww .  j a v a 2  s  .  c  o m
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    CreateItemRelationshipsStorage createItemRelationshipsStorage = (CreateItemRelationshipsStorage) o;
    return Objects.equals(this.data, createItemRelationshipsStorage.data);
}

From source file:org.trustedanalytics.user.common.UaaProblem.java

@Override
public boolean equals(Object obj) {
    if (obj == null)
        return false;
    if (getClass() != obj.getClass())
        return false;
    UaaProblem other = (UaaProblem) obj;
    return Objects.equals(this.message, other.message) && Objects.equals(this.error, other.error)
            && Objects.equals(this.userId, other.userId);
}