Skip to content

Commit

Permalink
Update name in MESLink
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Aug 22, 2024
1 parent 07263a7 commit 56b6655
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
/**
* Represents a simple trace link by the id of the model and number of the sentence involved.
*/
public record ModelElementSentenceLink(String modelElementId, int sentenceNr) implements Comparable<ModelElementSentenceLink> {
public record ModelElementSentenceLink(String modelElementId, int sentenceNumber) implements Comparable<ModelElementSentenceLink> {

public ModelElementSentenceLink(SadSamTraceLink traceLink) {
this(traceLink.getModelElementUid(), traceLink.getSentenceNumber());
}

@Override
public int compareTo(ModelElementSentenceLink o) {
return Comparator.comparing(ModelElementSentenceLink::modelElementId).thenComparing(ModelElementSentenceLink::sentenceNr).compare(this, o);
return Comparator.comparing(ModelElementSentenceLink::modelElementId).thenComparing(ModelElementSentenceLink::sentenceNumber).compare(this, o);
}

}

0 comments on commit 56b6655

Please sign in to comment.