org.apache.commons.lang.builder.HashCodeBuilder Java Examples
The following examples show how to use
org.apache.commons.lang.builder.HashCodeBuilder.
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: TPrivilegeChanges.java From incubator-sentry with Apache License 2.0 | 6 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_authzObj = true && (isSetAuthzObj()); builder.append(present_authzObj); if (present_authzObj) builder.append(authzObj); boolean present_addPrivileges = true && (isSetAddPrivileges()); builder.append(present_addPrivileges); if (present_addPrivileges) builder.append(addPrivileges); boolean present_delPrivileges = true && (isSetDelPrivileges()); builder.append(present_delPrivileges); if (present_delPrivileges) builder.append(delPrivileges); return builder.toHashCode(); }
Example #2
Source File: TSentryRole.java From incubator-sentry with Apache License 2.0 | 6 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); boolean present_groups = true && (isSetGroups()); builder.append(present_groups); if (present_groups) builder.append(groups); return builder.toHashCode(); }
Example #3
Source File: Project.java From gitlab-plugin with GNU General Public License v2.0 | 6 votes |
@Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(id) .append(name) .append(description) .append(webUrl) .append(avatarUrl) .append(namespace) .append(visibilityLevel) .append(pathWithNamespace) .append(defaultBranch) .append(homepage) .append(url) .append(sshUrl) .append(httpUrl) .toHashCode(); }
Example #4
Source File: TSentryMappingData.java From incubator-sentry with Apache License 2.0 | 6 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_groupRolesMap = true && (isSetGroupRolesMap()); builder.append(present_groupRolesMap); if (present_groupRolesMap) builder.append(groupRolesMap); boolean present_rolePrivilegesMap = true && (isSetRolePrivilegesMap()); builder.append(present_rolePrivilegesMap); if (present_rolePrivilegesMap) builder.append(rolePrivilegesMap); return builder.toHashCode(); }
Example #5
Source File: SensorParserConfig.java From metron with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(parserClassName) .append(filterClassName) .append(sensorTopic) .append(outputTopic) .append(errorTopic) .append(writerClassName) .append(errorWriterClassName) .append(getReadMetadata()) .append(getMergeMetadata()) .append(numWorkers) .append(numAckers) .append(spoutParallelism) .append(spoutNumTasks) .append(parserParallelism) .append(parserNumTasks) .append(errorWriterParallelism) .append(errorWriterNumTasks) .append(spoutConfig) .append(securityProtocol) .append(stormConfig) .append(cacheConfig) .append(parserConfig) .append(fieldTransformations) .append(rawMessageStrategy) .append(rawMessageStrategyConfig) .toHashCode(); }
Example #6
Source File: ElasticByteBufferPool.java From hadoop with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(). append(capacity). append(insertionTime). toHashCode(); }
Example #7
Source File: TimesheetPrefEntry.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
@Override public int hashCode() { HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(this.taskId); hcb.append(this.kost2Id); hcb.append(this.location); hcb.append(this.description); return hcb.toHashCode(); }
Example #8
Source File: JpaIdentifierImpl.java From openregistry with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder() .append(this.value) .append(this.type) // .append(this.type!=null?this.type.getName():"NULL") .toHashCode(); }
Example #9
Source File: Table.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} */ public int hashCode() { // TODO: For now we ignore catalog and schema (type should be irrelevant anyways) return new HashCodeBuilder(17, 37).append(_name) .append(_columns) .append(new HashSet(_foreignKeys)) .append(new HashSet(_indices)) .toHashCode(); }
Example #10
Source File: ShortCircuitShm.java From big-c with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(). append(this.shmId). append(this.slotIdx). toHashCode(); }
Example #11
Source File: MergeRequestLabel.java From gitlab-plugin with GNU General Public License v2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(id) .append(title) .append(color) .append(projectId) .append(createdAt) .append(updatedAt) .append(template) .append(description) .append(type) .append(groupId) .toHashCode(); }
Example #12
Source File: IgnoreEntryOccurrence.java From idea-gitignore with MIT License | 5 votes |
/** * Calculates hashCode with {@link #url} and {@link #items} hashCodes. * * @return entry hashCode */ @Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder().append(url); for (Pair<String, Boolean> item : items) { builder.append(item.first).append(item.second); } return builder.toHashCode(); }
Example #13
Source File: MatcherUtil.java From idea-gitignore with MIT License | 5 votes |
/** * Extracts alphanumeric parts from the regex pattern and checks if any of them is contained in the tested path. * Looking for the parts speed ups the matching and prevents from running whole regex on the string. * * @param pattern to explode * @param path to check * @return path matches the pattern */ public boolean match(@Nullable Pattern pattern, @Nullable String path) { if (pattern == null || path == null) { return false; } synchronized (cache) { int hashCode = new HashCodeBuilder().append(pattern).append(path).toHashCode(); if (!cache.containsKey(hashCode)) { final String[] parts = getParts(pattern); boolean result = false; if (parts.length == 0 || matchAllParts(parts, path)) { try { result = pattern.matcher(path).find(); } catch (StringIndexOutOfBoundsException ignored) { } } cache.put(hashCode, result); return result; } return cache.get(hashCode); } }
Example #14
Source File: TypeDTO.java From phoenicis with GNU Lesser General Public License v3.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(17, 37) .append(id) .append(name) .append(categories) .append(icon) .toHashCode(); }
Example #15
Source File: BlogLanguage.java From wallride with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder() .append(getId()) .append(getLanguage()) .toHashCode(); }
Example #16
Source File: GenericAuditEntity.java From eagle with Apache License 2.0 | 5 votes |
public int hashCode(){ HashCodeBuilder builder = new HashCodeBuilder(); builder.append(getTags().get(AUDIT_COLUMN_SERVICE_NAME)); builder.append(getTags().get(AUDIT_COLUMN_USER_ID)); builder.append(getTags().get(AUDIT_COLUMN_OPERATION)); builder.append(getTags().get(AUDIT_COLUMN_TIMESTAMP)); return builder.toHashCode(); }
Example #17
Source File: TherapeuticLinkRequestType.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.link); builder.append(this.proofs); builder.append(this.author); builder.append(this.requestDate); builder.append(this.externalId); return builder.toHashCode(); }
Example #18
Source File: LatteFunctionSettings.java From intellij-latte with MIT License | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder() .append(this.functionName) .append(this.functionReturnType) .append(this.functionHelp) .append(this.functionDescription) .toHashCode(); }
Example #19
Source File: BaseNiciraEntity.java From cosmic with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(17, 31) .append(this.getClass()) .append(uuid) .toHashCode(); }
Example #20
Source File: Text.java From olat with Apache License 2.0 | 5 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(1239, 5475); builder.append(this.getCourseId()); builder.append(this.getType()); builder.append(this.getLineSeq()); builder.append(this.getLine()); return builder.toHashCode(); }
Example #21
Source File: TaskNode.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
@Override public int hashCode() { final HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(this.getParentId()).append(this.getTask().getTitle()); return hcb.toHashCode(); }
Example #22
Source File: StateMachine.java From attic-aurora with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder() .append(from) .append(to) .toHashCode(); }
Example #23
Source File: CustomCredential.java From CAS with Apache License 2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder() .appendSuper(super.hashCode()) .append(this.email) .append(this.telephone) .toHashCode(); }
Example #24
Source File: StructuralDiff.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
@Override public int hashCode() { return new HashCodeBuilder(57, 55) .append(diffType) .append(beforePositionRange) .append(afterPositionRange) .toHashCode(); }
Example #25
Source File: DashboardCategory.java From HeadsUp with GNU General Public License v2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public int hashCode() { return new HashCodeBuilder(153, 11) .append(id) .append(titleRes) .append(title) .append(tiles) .toHashCode(); }
Example #26
Source File: TListSentryPrivilegesForProviderRequest.java From incubator-sentry with Apache License 2.0 | 5 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_protocol_version = true; builder.append(present_protocol_version); if (present_protocol_version) builder.append(protocol_version); boolean present_component = true && (isSetComponent()); builder.append(present_component); if (present_component) builder.append(component); boolean present_serviceName = true && (isSetServiceName()); builder.append(present_serviceName); if (present_serviceName) builder.append(serviceName); boolean present_groups = true && (isSetGroups()); builder.append(present_groups); if (present_groups) builder.append(groups); boolean present_roleSet = true && (isSetRoleSet()); builder.append(present_roleSet); if (present_roleSet) builder.append(roleSet); boolean present_authorizables = true && (isSetAuthorizables()); builder.append(present_authorizables); if (present_authorizables) builder.append(authorizables); return builder.toHashCode(); }
Example #27
Source File: AlertDefinitionAPIEntity.java From Eagle with Apache License 2.0 | 5 votes |
public int hashCode(){ HashCodeBuilder builder = new HashCodeBuilder(); builder.append(enabled); builder.append(policyDef); builder.append(dedupeDef); builder.append(notificationDef); builder.append(remediationDef); return builder.toHashCode(); }
Example #28
Source File: LocationVO.java From spring-rest-server with GNU Lesser General Public License v3.0 | 4 votes |
@Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); }
Example #29
Source File: HttpSecurityBean.java From apiman-plugins with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return new HashCodeBuilder().append(hsts).append(contentSecurityPolicy).append(frameOptions) .append(xssProtection).append(contentTypeOptions).append(additionalProperties).toHashCode(); }
Example #30
Source File: SelectableChannel.java From spacewalk with GNU General Public License v2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public int hashCode() { return new HashCodeBuilder().append(getId()).toHashCode(); }