/** * @param nodes Nodes. */ boolean updateHistory(Collection<? extends BaselineNode> nodes) { long newTopHash = calculateTopologyHash(nodes); lastBranchingPointType = BranchingPointType.CLUSTER_ACTIVATION; if (branchingPntHash != newTopHash) { branchingPntHash = newTopHash; branchingHist.add(newTopHash); return true; } return false; }
/** * @param nodes Nodes. */ boolean updateHistory(Collection<? extends BaselineNode> nodes) { long newTopHash = calculateTopologyHash(nodes); lastBranchingPointType = BranchingPointType.CLUSTER_ACTIVATION; if (branchingPntHash != newTopHash) { branchingPntHash = newTopHash; branchingHist.add(newTopHash); return true; } return false; }