net.sourceforge.plantuml.bpm.AbstractConnectorPuzzle 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.bpm;
import java.util.EnumSet;
import java.util.Set;
abstract class AbstractConnectorPuzzle implements ConnectorPuzzle {
// ::remove folder when __HAXE__
private final EnumSet connections = EnumSet.noneOf(Where.class);
public final boolean have(Where where) {
return connections.contains(where);
}
public final void append(Where where) {
this.connections.add(where);
}
public final void remove(Where where) {
final boolean ok = connections.remove(where);
if (ok == false) {
throw new IllegalArgumentException();
}
}
public final void append(ConnectorPuzzle other) {
this.connections.addAll(((AbstractConnectorPuzzle) other).connections);
}
protected final Set connections() {
return connections;
}
}