Java Code Examples for org.apache.commons.lang.builder.HashCodeBuilder#append()
The following examples show how to use
org.apache.commons.lang.builder.HashCodeBuilder#append() .
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: TSentryResponseStatus.java From incubator-sentry with Apache License 2.0 | 6 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true; builder.append(present_value); if (present_value) builder.append(value); boolean present_message = true && (isSetMessage()); builder.append(present_message); if (present_message) builder.append(message); boolean present_stack = true && (isSetStack()); builder.append(present_stack); if (present_stack) builder.append(stack); return builder.toHashCode(); }
Example 2
Source File: TDropSentryRoleRequest.java From incubator-sentry with Apache License 2.0 | 6 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_requestorUserName = true && (isSetRequestorUserName()); builder.append(present_requestorUserName); if (present_requestorUserName) builder.append(requestorUserName); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); return builder.toHashCode(); }
Example 3
Source File: TDropSentryRoleRequest.java From incubator-sentry with Apache License 2.0 | 6 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_requestorUserName = true && (isSetRequestorUserName()); builder.append(present_requestorUserName); if (present_requestorUserName) builder.append(requestorUserName); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); boolean present_component = true && (isSetComponent()); builder.append(present_component); if (present_component) builder.append(component); return builder.toHashCode(); }
Example 4
Source File: TCreateSentryRoleRequest.java From incubator-sentry with Apache License 2.0 | 6 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_requestorUserName = true && (isSetRequestorUserName()); builder.append(present_requestorUserName); if (present_requestorUserName) builder.append(requestorUserName); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); boolean present_component = true && (isSetComponent()); builder.append(present_component); if (present_component) builder.append(component); return builder.toHashCode(); }
Example 5
Source File: TPathChanges.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_addPaths = true && (isSetAddPaths()); builder.append(present_addPaths); if (present_addPaths) builder.append(addPaths); boolean present_delPaths = true && (isSetDelPaths()); builder.append(present_delPaths); if (present_delPaths) builder.append(delPaths); return builder.toHashCode(); }
Example 6
Source File: TListSentryPrivilegesRequest.java From incubator-sentry with Apache License 2.0 | 6 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_requestorUserName = true && (isSetRequestorUserName()); builder.append(present_requestorUserName); if (present_requestorUserName) builder.append(requestorUserName); boolean present_roleName = true && (isSetRoleName()); builder.append(present_roleName); if (present_roleName) builder.append(roleName); boolean present_authorizableHierarchy = true && (isSetAuthorizableHierarchy()); builder.append(present_authorizableHierarchy); if (present_authorizableHierarchy) builder.append(authorizableHierarchy); return builder.toHashCode(); }
Example 7
Source File: TSentryConfigValueResponse.java From incubator-sentry with Apache License 2.0 | 6 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); builder.append(present_status); if (present_status) builder.append(status); boolean present_value = true && (isSetValue()); builder.append(present_value); if (present_value) builder.append(value); return builder.toHashCode(); }
Example 8
Source File: ScannerChunk.java From datawave with Apache License 2.0 | 5 votes |
/** * Deepcopy for the scanner chunk * * @param chunk */ public ScannerChunk(ScannerChunk chunk) { Preconditions.checkNotNull(chunk); options = chunk.options; this.ranges = new ConcurrentLinkedQueue<>(); setRanges(chunk.ranges); this.lastKnownLocation = chunk.lastKnownLocation; HashCodeBuilder builder = new HashCodeBuilder(); builder.append(options); builder.append(ranges); hashCode += builder.hashCode(); this.queryId = chunk.queryId; }
Example 9
Source File: TDropSentryRoleResponse.java From incubator-sentry with Apache License 2.0 | 5 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); builder.append(present_status); if (present_status) builder.append(status); return builder.toHashCode(); }
Example 10
Source File: BaseNormalizedContent.java From datawave with Apache License 2.0 | 5 votes |
public int hashCode() { if (hashCode == null) { HashCodeBuilder b = new HashCodeBuilder(); b.append(_fieldName).append(_indexedFieldValue).append(_eventFieldValue); b.append(_markings); if (error != null) { b.append(error); // we want error in the hashCode only when it is non-null } hashCode = b.toHashCode(); } return hashCode; }
Example 11
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 12
Source File: ImmutableAssertion.java From cas4.0.x-server-wechat with Apache License 2.0 | 5 votes |
public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(15, 11); builder.append(this.primaryAuthentication); builder.append(this.chainedAuthentications); builder.append(this.service); builder.append(this.fromNewLogin); return builder.toHashCode(); }
Example 13
Source File: OperationContext.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.operation); builder.append(this.author); builder.append(this.proofs); builder.append(this.recordDate); return builder.toHashCode(); }
Example 14
Source File: TherapeuticLink.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.comment); builder.append(this.endDate); builder.append(this.hcParty); builder.append(this.patient); builder.append(this.startDate); builder.append(this.status); return builder.toHashCode(); }
Example 15
Source File: TeamEventAttachmentDO.java From projectforge-webapp with GNU General Public License v3.0 | 5 votes |
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(getId()); if (getId() != null) { return hcb.toHashCode(); } hcb.append(this.filename); hcb.append(this.content); return hcb.toHashCode(); }
Example 16
Source File: TDropSentryRoleResponse.java From incubator-sentry with Apache License 2.0 | 5 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); builder.append(present_status); if (present_status) builder.append(status); return builder.toHashCode(); }
Example 17
Source File: TAlterSentryRoleDeleteGroupsResponse.java From incubator-sentry with Apache License 2.0 | 5 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); builder.append(present_status); if (present_status) builder.append(status); return builder.toHashCode(); }
Example 18
Source File: Subscriber.java From olat with Apache License 2.0 | 4 votes |
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(63, 111); builder.append(getIdentity().getName()); return builder.toHashCode(); }
Example 19
Source File: SubVersion.java From vladmihalcea.wordpress.com with Apache License 2.0 | 4 votes |
@Override public int hashCode() { HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(getCode()); return hcb.toHashCode(); }
Example 20
Source File: BinaryProof.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.binary); builder.append(this.method); return builder.toHashCode(); }