Java Code Examples for java.util.List#hashCode()
The following examples show how to use
java.util.List#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: Throughput.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_readQps = true && (isSetReadQps()); list.add(present_readQps); if (present_readQps) list.add(readQps); boolean present_writeQps = true && (isSetWriteQps()); list.add(present_writeQps); if (present_writeQps) list.add(writeQps); return list.hashCode(); }
Example 2
Source File: DeletePeekMessageBatchResponse.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_successful = true && (isSetSuccessful()); list.add(present_successful); if (present_successful) list.add(successful); boolean present_failed = true && (isSetFailed()); list.add(present_failed); if (present_failed) list.add(failed); return list.hashCode(); }
Example 3
Source File: ConsumeResult.java From DDMQ with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_context = true && (isSetContext()); list.add(present_context); if (present_context) list.add(context); boolean present_successOffsets = true && (isSetSuccessOffsets()); list.add(present_successOffsets); if (present_successOffsets) list.add(successOffsets); boolean present_failOffsets = true && (isSetFailOffsets()); list.add(present_failOffsets); if (present_failOffsets) list.add(failOffsets); boolean present_nextResult = true && (isSetNextResult()); list.add(present_nextResult); if (present_nextResult) list.add(nextResult); return list.hashCode(); }
Example 4
Source File: TotalBill.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_totalCost = true; list.add(present_totalCost); if (present_totalCost) list.add(totalCost); boolean present_billList = true && (isSetBillList()); list.add(present_billList); if (present_billList) list.add(billList); return list.hashCode(); }
Example 5
Source File: ScanAction.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_action = true && (isSetAction()); list.add(present_action); if (present_action) list.add(action.getValue()); boolean present_request = true && (isSetRequest()); list.add(present_request); if (present_request) list.add(request); return list.hashCode(); }
Example 6
Source File: GalaxyLCSException.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_errorCode = true && (isSetErrorCode()); list.add(present_errorCode); if (present_errorCode) list.add(errorCode.getValue()); boolean present_errMsg = true && (isSetErrMsg()); list.add(present_errMsg); if (present_errMsg) list.add(errMsg); boolean present_details = true && (isSetDetails()); list.add(present_details); if (present_details) list.add(details); return list.hashCode(); }
Example 7
Source File: EntityGroupSpec.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_attributes = true && (isSetAttributes()); list.add(present_attributes); if (present_attributes) list.add(attributes); boolean present_enableHash = true && (isSetEnableHash()); list.add(present_enableHash); if (present_enableHash) list.add(enableHash); return list.hashCode(); }
Example 8
Source File: DeadMessageRequest.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_queueName = true && (isSetQueueName()); list.add(present_queueName); if (present_queueName) list.add(queueName); boolean present_receiptHandle = true && (isSetReceiptHandle()); list.add(present_receiptHandle); if (present_receiptHandle) list.add(receiptHandle); return list.hashCode(); }
Example 9
Source File: SetQueueRedrivePolicyRequest.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_queueName = true && (isSetQueueName()); list.add(present_queueName); if (present_queueName) list.add(queueName); boolean present_redrivePolicy = true && (isSetRedrivePolicy()); list.add(present_redrivePolicy); if (present_redrivePolicy) list.add(redrivePolicy); return list.hashCode(); }
Example 10
Source File: StormTopology.java From jstorm with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_spouts = true && (is_set_spouts()); list.add(present_spouts); if (present_spouts) list.add(spouts); boolean present_bolts = true && (is_set_bolts()); list.add(present_bolts); if (present_bolts) list.add(bolts); boolean present_state_spouts = true && (is_set_state_spouts()); list.add(present_state_spouts); if (present_state_spouts) list.add(state_spouts); return list.hashCode(); }
Example 11
Source File: PositionListIndex.java From metanome-algorithms with Apache License 2.0 | 6 votes |
@Override public int hashCode() { final int prime = 31; int result = 1; List<IntOpenHashSet> setCluster = this.convertClustersToSets(this.clusters); Collections.sort(setCluster, new Comparator<IntSet>() { @Override public int compare(IntSet o1, IntSet o2) { return o1.hashCode() - o2.hashCode(); } }); result = prime * result + (setCluster.hashCode()); return result; }
Example 12
Source File: DeleteTagAlertPolicyRequest.java From galaxy-sdk-java with Apache License 2.0 | 6 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_queueName = true && (isSetQueueName()); list.add(present_queueName); if (present_queueName) list.add(queueName); boolean present_tagName = true && (isSetTagName()); list.add(present_tagName); if (present_tagName) list.add(tagName); boolean present_alertPolicy = true && (isSetAlertPolicy()); list.add(present_alertPolicy); if (present_alertPolicy) list.add(alertPolicy); return list.hashCode(); }
Example 13
Source File: MusicManager.java From SweetMusicPlayer with Apache License 2.0 | 5 votes |
/** * 判断是否为同一个播放列表,都为null判断false,否则比较两者的hashcode * * @param list2 * @return */ public static boolean isListEqual(List list2) { List list1 = get().getPlayingList(); if (list1 == null || list2 == null) { return false; } else { return list1.hashCode() == list2.hashCode(); } }
Example 14
Source File: ComponentSummary.java From jstorm with Apache License 2.0 | 5 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (is_set_name()); list.add(present_name); if (present_name) list.add(name); boolean present_parallel = true; list.add(present_parallel); if (present_parallel) list.add(parallel); boolean present_type = true && (is_set_type()); list.add(present_type); if (present_type) list.add(type); boolean present_taskIds = true && (is_set_taskIds()); list.add(present_taskIds); if (present_taskIds) list.add(taskIds); boolean present_errors = true && (is_set_errors()); list.add(present_errors); if (present_errors) list.add(errors); return list.hashCode(); }
Example 15
Source File: ConsumerService.java From DDMQ with Apache License 2.0 | 5 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); return list.hashCode(); }
Example 16
Source File: OffsetInfo.java From galaxy-sdk-java with Apache License 2.0 | 5 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_partitionId = true; list.add(present_partitionId); if (present_partitionId) list.add(partitionId); boolean present_startOffset = true && (isSetStartOffset()); list.add(present_startOffset); if (present_startOffset) list.add(startOffset); boolean present_endOffset = true && (isSetEndOffset()); list.add(present_endOffset); if (present_endOffset) list.add(endOffset); boolean present_errorCode = true && (isSetErrorCode()); list.add(present_errorCode); if (present_errorCode) list.add(errorCode.getValue()); boolean present_errorMsg = true && (isSetErrorMsg()); list.add(present_errorMsg); if (present_errorMsg) list.add(errorMsg); return list.hashCode(); }
Example 17
Source File: JudgeService.java From galaxy-sdk-java with Apache License 2.0 | 5 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_se = true && (isSetSe()); list.add(present_se); if (present_se) list.add(se); return list.hashCode(); }
Example 18
Source File: PartitionStatistics.java From galaxy-sdk-java with Apache License 2.0 | 5 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_collectedEditNumber = true && (isSetCollectedEditNumber()); list.add(present_collectedEditNumber); if (present_collectedEditNumber) list.add(collectedEditNumber); return list.hashCode(); }
Example 19
Source File: BaseService.java From galaxy-sdk-java with Apache License 2.0 | 5 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_clientVersion = true && (isSetClientVersion()); list.add(present_clientVersion); if (present_clientVersion) list.add(clientVersion); return list.hashCode(); }
Example 20
Source File: BaseService.java From galaxy-sdk-java with Apache License 2.0 | 4 votes |
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); return list.hashCode(); }