Java Code Examples for java.util.Objects#hashCode()
The following examples show how to use
java.util.Objects#hashCode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RcChannelsRaw.java From mavlink with MIT License | 6 votes |
@Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(timeBootMs); result = 31 * result + Objects.hashCode(port); result = 31 * result + Objects.hashCode(chan1Raw); result = 31 * result + Objects.hashCode(chan2Raw); result = 31 * result + Objects.hashCode(chan3Raw); result = 31 * result + Objects.hashCode(chan4Raw); result = 31 * result + Objects.hashCode(chan5Raw); result = 31 * result + Objects.hashCode(chan6Raw); result = 31 * result + Objects.hashCode(chan7Raw); result = 31 * result + Objects.hashCode(chan8Raw); result = 31 * result + Objects.hashCode(rssi); return result; }
Example 2
Source File: GSUser.java From geofence with GNU General Public License v2.0 | 6 votes |
@Override public int hashCode() { int hash = 7; hash = 29 * hash + Objects.hashCode(this.id); hash = 29 * hash + Objects.hashCode(this.extId); hash = 29 * hash + Objects.hashCode(this.name); hash = 29 * hash + Objects.hashCode(this.fullName); hash = 29 * hash + Objects.hashCode(this.password); hash = 29 * hash + Objects.hashCode(this.emailAddress); hash = 29 * hash + Objects.hashCode(this.dateCreation); hash = 29 * hash + (this.enabled ? 1 : 0); hash = 29 * hash + (this.admin ? 1 : 0); hash = 29 * hash + Objects.hashCode(this.userGroups); return hash; }
Example 3
Source File: TwigTopColoringLexer.java From netbeans with Apache License 2.0 | 5 votes |
@Override public int hashCode() { int hash = 3; hash = 17 * hash + Objects.hashCode(this.stack); hash = 17 * hash + this.zzState; hash = 17 * hash + this.zzLexicalState; hash = 17 * hash + Objects.hashCode(this.lexing); hash = 17 * hash + (this.probablyInDString ? 1 : 0); hash = 17 * hash + (this.probablyInSString ? 1 : 0); hash = 17 * hash + this.curlyBalance; return hash; }
Example 4
Source File: ObstacleDistance.java From mavlink with MIT License | 5 votes |
@Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(timeUsec); result = 31 * result + Objects.hashCode(sensorType); result = 31 * result + Objects.hashCode(distances); result = 31 * result + Objects.hashCode(increment); result = 31 * result + Objects.hashCode(minDistance); result = 31 * result + Objects.hashCode(maxDistance); result = 31 * result + Objects.hashCode(incrementF); result = 31 * result + Objects.hashCode(angleOffset); result = 31 * result + Objects.hashCode(frame); return result; }
Example 5
Source File: KODataBindContext.java From netbeans with Apache License 2.0 | 5 votes |
@Override public int hashCode() { int hash = 7; hash = 53 * hash + Objects.hashCode(this.original); hash = 53 * hash + Objects.hashCode(this.parents); hash = 53 * hash + Objects.hashCode(this.data); hash = 53 * hash + (this.inForEach ? 1 : 0); return hash; }
Example 6
Source File: Altitude.java From mavlink with MIT License | 5 votes |
@Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(timeUsec); result = 31 * result + Objects.hashCode(altitudeMonotonic); result = 31 * result + Objects.hashCode(altitudeAmsl); result = 31 * result + Objects.hashCode(altitudeLocal); result = 31 * result + Objects.hashCode(altitudeRelative); result = 31 * result + Objects.hashCode(altitudeTerrain); result = 31 * result + Objects.hashCode(bottomClearance); return result; }
Example 7
Source File: MessageInterval.java From mavlink with MIT License | 5 votes |
@Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(messageId); result = 31 * result + Objects.hashCode(intervalUs); return result; }
Example 8
Source File: StackTraceElement.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns a hash code value for this stack trace element. */ public int hashCode() { int result = 31*declaringClass.hashCode() + methodName.hashCode(); result = 31*result + Objects.hashCode(fileName); result = 31*result + lineNumber; return result; }
Example 9
Source File: ParamExtAck.java From mavlink with MIT License | 5 votes |
@Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(paramId); result = 31 * result + Objects.hashCode(paramValue); result = 31 * result + Objects.hashCode(paramType); result = 31 * result + Objects.hashCode(paramResult); return result; }
Example 10
Source File: CrossCollectionJoinQuery.java From lucene-solr with Apache License 2.0 | 5 votes |
@Override public int hashCode() { final int prime = 31; int result = classHash(); result = prime * result + Objects.hashCode(query); result = prime * result + Objects.hashCode(zkHost); result = prime * result + Objects.hashCode(solrUrl); result = prime * result + Objects.hashCode(collection); result = prime * result + Objects.hashCode(fromField); result = prime * result + Objects.hashCode(toField); result = prime * result + Objects.hashCode(routedByJoinKey); result = prime * result + Objects.hashCode(otherParamsString); // timestamp and ttl should not be included in hash code return result; }
Example 11
Source File: FlexifunctionCommand.java From mavlink with MIT License | 5 votes |
@Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(targetSystem); result = 31 * result + Objects.hashCode(targetComponent); result = 31 * result + Objects.hashCode(commandType); return result; }
Example 12
Source File: PersonId.java From jeddict with Apache License 2.0 | 5 votes |
@Override public int hashCode() { int hash = 7; hash = 31 * hash + Objects.hashCode(this.getFirstName()); hash = 31 * hash + Objects.hashCode(this.getLastName()); return hash; }
Example 13
Source File: DeleteCondition.java From james-project with Apache License 2.0 | 4 votes |
@Override public final int hashCode() { return Objects.hashCode(name); }
Example 14
Source File: DocumentFeature.java From jpmml-sparkml with GNU Affero General Public License v3.0 | 4 votes |
@Override public int hashCode(){ return (31 * super.hashCode()) + Objects.hashCode(this.isCaseSensitive()); }
Example 15
Source File: CountryDTO.java From Spring-5.0-Projects with MIT License | 4 votes |
@Override public int hashCode() { return Objects.hashCode(getId()); }
Example 16
Source File: ExtensionRepoBucket.java From nifi-registry with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return Objects.hashCode(this.bucketName); }
Example 17
Source File: FQN.java From intellij-reference-diagram with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return Objects.hashCode(getFQN()); }
Example 18
Source File: GenericArrayTypeImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public int hashCode() { return Objects.hashCode(genericComponentType); }
Example 19
Source File: AttrCompletionItem.java From NBANDROID-V2 with Apache License 2.0 | 4 votes |
@Override public int hashCode() { int hash = 7; hash = 53 * hash + Objects.hashCode(this.completionText); return hash; }
Example 20
Source File: DailyDataPoint.java From darksky-forecast-api with MIT License | 4 votes |
@Override public int hashCode() { int hash = 7; hash = 59 * hash + Objects.hashCode(this.time); hash = 59 * hash + Objects.hashCode(this.summary); hash = 59 * hash + Objects.hashCode(this.icon); hash = 59 * hash + Objects.hashCode(this.sunriseTime); hash = 59 * hash + Objects.hashCode(this.sunsetTime); hash = 59 * hash + Objects.hashCode(this.moonPhase); hash = 59 * hash + Objects.hashCode(this.precipIntensity); hash = 59 * hash + Objects.hashCode(this.precipIntensityMax); hash = 59 * hash + Objects.hashCode(this.precipProbability); hash = 59 * hash + Objects.hashCode(this.precipIntensityMaxTime); hash = 59 * hash + Objects.hashCode(this.precipAccumulation); hash = 59 * hash + Objects.hashCode(this.precipType); hash = 59 * hash + Objects.hashCode(this.temperatureHigh); hash = 59 * hash + Objects.hashCode(this.temperatureHighTime); hash = 59 * hash + Objects.hashCode(this.temperatureLow); hash = 59 * hash + Objects.hashCode(this.temperatureLowTime); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureHigh); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureHighTime); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureLow); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureLowTime); hash = 59 * hash + Objects.hashCode(this.temperatureMin); hash = 59 * hash + Objects.hashCode(this.temperatureMinTime); hash = 59 * hash + Objects.hashCode(this.temperatureMax); hash = 59 * hash + Objects.hashCode(this.temperatureMaxTime); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureMin); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureMinTime); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureMax); hash = 59 * hash + Objects.hashCode(this.apparentTemperatureMaxTime); hash = 59 * hash + Objects.hashCode(this.dewPoint); hash = 59 * hash + Objects.hashCode(this.humidity); hash = 59 * hash + Objects.hashCode(this.pressure); hash = 59 * hash + Objects.hashCode(this.windSpeed); hash = 59 * hash + Objects.hashCode(this.windGust); hash = 59 * hash + Objects.hashCode(this.windGustTime); hash = 59 * hash + Objects.hashCode(this.windBearing); hash = 59 * hash + Objects.hashCode(this.cloudCover); hash = 59 * hash + Objects.hashCode(this.uvIndex); hash = 59 * hash + Objects.hashCode(this.uvIndexTime); hash = 59 * hash + Objects.hashCode(this.visibility); hash = 59 * hash + Objects.hashCode(this.ozone); return hash; }