public class ConnectorPositionFirstValid extends Object implements ConnectorPosition
ConnectorPosition
s and returns the first valid position from the given implementations.UNKNOWN_POSITION
Constructor and Description |
---|
ConnectorPositionFirstValid(ConnectorPosition... connectorPosition) |
public ConnectorPositionFirstValid(ConnectorPosition... connectorPosition)
connectorPosition
- the ConnectorPosition
s to search for a valid position.public int getPosition(List<Connector> connectors)
getPosition
in interface ConnectorPosition
connectors
- the existing list of connectors.Copyright © 2008–2016 Brabenetz Harald, Austria. All rights reserved.