@Override public @Nonnull AnswerId getFinalAnswerId( AnswerId baseAnswerId, Set<IssueSettingsId> issueSettingsIds) { return new AnswerId( hash( ImmutableList.of( baseAnswerId, ImmutableSortedSet.copyOf( Comparator.comparing(IssueSettingsId::getId), issueSettingsIds)) .toString())); }
@Override public NodeRolesId getSnapshotNodeRolesId(NetworkId networkId, SnapshotId snapshotId) { return new NodeRolesId(hash(ImmutableList.of(networkId, snapshotId).toString())); }
@Override public @Nonnull AnswerId getBaseAnswerId( NetworkId networkId, SnapshotId snapshotId, QuestionId questionId, QuestionSettingsId questionSettingsId, NodeRolesId networkNodeRolesId, SnapshotId referenceSnapshotId, AnalysisId analysisId) { return new AnswerId( hash( ImmutableList.of( networkId, snapshotId, questionId, questionSettingsId, networkNodeRolesId, ofNullable(referenceSnapshotId), ofNullable(analysisId)) .toString())); }