List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:com.connio.sdk.resource.property.GeoFence.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GeoFence that = (GeoFence) o;//from w w w. j a va 2s . com return Objects.equals(lat, that.lat) && Objects.equals(lon, that.lon) && Objects.equals(radius, that.radius) && Objects.equals(pos, that.pos); }
From source file:net.roboconf.dm.templating.internal.helpers.IsKeyHelper.java
@Override public CharSequence apply(String context, Options options) throws IOException { CharSequence result = StringUtils.EMPTY; Object model = options.context.model(); if (model instanceof VariableContextBean) { String name = ((VariableContextBean) model).getName(); if (Objects.equals(name, context)) result = ((VariableContextBean) model).getValue(); }//from w w w . j a v a2s . c om return result; }
From source file:com.autodesk.client.model.Diagnostics.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from w w w .j a va2 s.co m*/ if (o == null || getClass() != o.getClass()) { return false; } Diagnostics diagnostics = (Diagnostics) o; return Objects.equals(this.diagnostics, diagnostics.diagnostics); }
From source file:com.github.parisoft.resty.response.http.HttpResponseExtensionImpl.java
@Override public HttpCookie getCookie(String name) throws IOException { for (HttpCookie cookie : getCookies()) { if (Objects.equals(cookie.getName(), name)) { return cookie; }//from w w w . j a v a 2 s. c om } return null; }
From source file:cl.tinet.devops.metrics.gen.bitbucket.model.Error.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; } Error error = (Error) o; return Objects.equals(this.error, error.error); }
From source file:com.vsct.dt.hesperides.applications.PlatformSnapshot.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* w ww . jav a2 s. c o m*/ if (obj == null || getClass() != obj.getClass()) { return false; } final PlatformSnapshot other = (PlatformSnapshot) obj; return Objects.equals(this.platform, other.platform) && Objects.equals(this.properties, other.properties); }
From source file:local.laer.app.knapsack.domain.support.Shape.java
@Override public boolean equals(Object obj) { if (obj == null || obj == this) { return obj == this; }/*from ww w. jav a 2s .c om*/ if (!Objects.equals(getClass(), obj.getClass())) { return false; } Shape other = getClass().cast(obj); return Objects.equals(rows, other.rows) && Objects.equals(cols, other.cols) && value == other.value; }
From source file:cl.tinet.devops.metrics.gen.bitbucket.model.SubjectTypesUserEvents.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from ww w . j a v a 2 s . c om*/ if (o == null || getClass() != o.getClass()) { return false; } SubjectTypesUserEvents subjectTypesUserEvents = (SubjectTypesUserEvents) o; return Objects.equals(this.href, subjectTypesUserEvents.href); }
From source file:com.ibm.watson.catalyst.jumpqa.heuristics.BooleanHeuristics.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; BooleanHeuristics<?> other = (BooleanHeuristics<?>) obj; if (!Objects.equals(other._predicates, this._predicates)) return false; return true;/* ww w .ja va 2 s .c o m*/ }
From source file:com.qwazr.externalizor.ComplexExample.java
@Override public boolean equals(Object o) { if (o == null || !(o instanceof ComplexExample)) return false; final ComplexExample s = (ComplexExample) o; if (nullObject != s.nullObject) return false; if (!Objects.equals(collection, s.collection)) return false; if (!Objects.equals(abstractCollection, s.abstractCollection)) return false; if (!Objects.deepEquals(mapObject, s.mapObject)) return false; if (!Objects.equals(noEmptyConstructor, s.noEmptyConstructor)) return false; if (!Objects.equals(noEmptyConstructorNull, s.noEmptyConstructorNull)) return false; if (!Objects.equals(timeObject, s.timeObject)) return false; return super.equals(o); }