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

net.sourceforge.plantuml.bpm.AbstractConnectorPuzzle 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.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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy