net.sourceforge.plantuml.sequencediagram.Notes 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;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
public class Notes extends AbstractEvent implements Event, Iterable {
private final List notes = new ArrayList<>();
public Notes(Note n1, Note n2) {
notes.add(n1);
notes.add(n2);
}
public void add(Note n) {
notes.add(n);
}
public boolean dealWith(Participant someone) {
for (Note n : notes) {
if (n.dealWith(someone)) {
return true;
}
}
return false;
}
public Iterator iterator() {
return notes.iterator();
}
public Note get(int i) {
return notes.get(i);
}
public List asList() {
return Collections.unmodifiableList(notes);
}
}