net.sourceforge.plantuml.sequencediagram.graphic.ParticipantRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.sequencediagram.graphic;
class ParticipantRange {
private final int start;
private final int end;
public ParticipantRange(int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
this.start = start;
this.end = end;
}
public int start() {
return start;
}
public int end() {
return end;
}
public ParticipantRange merge(ParticipantRange other) {
return new ParticipantRange(this.start, other.end);
}
}