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:fr.mycellar.domain.wine.Varietal.java

@Override
protected boolean dataEquals(IdentifiedEntity other) {
    Varietal varietal = (Varietal) other;
    return Objects.equals(getName(), varietal.getName());
}

From source file:io.leishvl.core.Citation.java

@Override
public boolean equals(final Object obj) {
    if (obj == null || !(obj instanceof Citation)) {
        return false;
    }//from  w w w.  j  a v  a  2  s  .  c o m
    final Citation other = Citation.class.cast(obj);
    return super.equals(other) && Objects.equals(leishvl, other.leishvl);
}

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

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }/*  ww w  .  jav a 2s.co m*/
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    JsonApiRelationshipsLinksInternal jsonApiRelationshipsLinksInternal = (JsonApiRelationshipsLinksInternal) o;
    return Objects.equals(this.links, jsonApiRelationshipsLinksInternal.links);
}

From source file:com.google.devtools.build.lib.worker.WorkerPoolConfig.java

@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }/* ww  w. j a  v  a  2 s .c o  m*/
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    WorkerPoolConfig that = (WorkerPoolConfig) o;
    return getBlockWhenExhausted() == that.getBlockWhenExhausted() && getFairness() == that.getFairness()
            && getJmxEnabled() == that.getJmxEnabled() && getLifo() == that.getLifo()
            && getMaxWaitMillis() == that.getMaxWaitMillis()
            && getMinEvictableIdleTimeMillis() == that.getMinEvictableIdleTimeMillis()
            && getNumTestsPerEvictionRun() == that.getNumTestsPerEvictionRun()
            && getSoftMinEvictableIdleTimeMillis() == that.getSoftMinEvictableIdleTimeMillis()
            && getTestOnBorrow() == that.getTestOnBorrow() && getTestOnCreate() == that.getTestOnCreate()
            && getTestOnReturn() == that.getTestOnReturn() && getTestWhileIdle() == that.getTestWhileIdle()
            && getTimeBetweenEvictionRunsMillis() == that.getTimeBetweenEvictionRunsMillis()
            && getMaxIdlePerKey() == that.getMaxIdlePerKey() && getMaxTotal() == that.getMaxTotal()
            && getMaxTotalPerKey() == that.getMaxTotalPerKey() && getMinIdlePerKey() == that.getMinIdlePerKey()
            && Objects.equals(getEvictionPolicyClassName(), that.getEvictionPolicyClassName())
            && Objects.equals(getJmxNameBase(), that.getJmxNameBase())
            && Objects.equals(getJmxNamePrefix(), that.getJmxNamePrefix());
}

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

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

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

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }/* www. java  2  s  . co  m*/
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    DesignAutomationWorkItems designAutomationWorkItems = (DesignAutomationWorkItems) o;
    return Objects.equals(this.value, designAutomationWorkItems.value);
}

From source file:com.ibm.watson.catalyst.jumpqa.replacer.VarReplacer.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;
    if (obj == null || getClass() != obj.getClass())
        return false;
    VarReplacer other = (VarReplacer) obj;
    if (!Objects.equals(other._pattern.toString(), this._pattern.toString()))
        return false;
    if (!Objects.equals(other._pattern.flags(), this._pattern.flags()))
        return false;
    return true;//  ww  w.j  a v  a  2s .co m
}

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

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

From source file:com.vsct.dt.strowgr.admin.nsq.payload.fragment.Conf.java

@Override
public boolean equals(Object o) {
    if (this == o)
        return true;
    if (o == null || getClass() != o.getClass())
        return false;
    Conf conf = (Conf) o;//from   w  w w.  j  a v  a 2  s.com
    return Objects.equals(haproxy, conf.haproxy) && Objects.equals(syslog, conf.syslog)
            && Objects.equals(bind, conf.bind) && Objects.equals(haproxyVersion, conf.haproxyVersion);
}

From source file:cl.tinet.devops.metrics.gen.bitbucket.model.SubjectTypesUser.java

@Override
public boolean equals(java.lang.Object o) {
    if (this == o) {
        return true;
    }//from  ww  w  .j  av  a2s  .  co m
    if (o == null || getClass() != o.getClass()) {
        return false;
    }
    SubjectTypesUser subjectTypesUser = (SubjectTypesUser) o;
    return Objects.equals(this.events, subjectTypesUser.events);
}