All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.plantuml.sequencediagram.graphic.ParticipantRange Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// 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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy