Class PeerSpecificParserConstraintImpl
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.pojo.PeerSpecificParserConstraintImpl
- All Implemented Interfaces:
 PeerSpecificParserConstraint,PeerSpecificParserConstraintProvider
public class PeerSpecificParserConstraintImpl
extends Object
implements PeerSpecificParserConstraintProvider
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T extends PeerConstraint>
booleanaddPeerConstraint(Class<T> classType, T peerConstraint) Register newPeerConstraintservice.<T extends PeerConstraint>
Optional<T>getPeerConstraint(Class<T> peerConstraintType) Looks-up and optionally returnsPeerConstraintservice. 
- 
Constructor Details
- 
PeerSpecificParserConstraintImpl
public PeerSpecificParserConstraintImpl() 
 - 
 - 
Method Details
- 
getPeerConstraint
Description copied from interface:PeerSpecificParserConstraintLooks-up and optionally returnsPeerConstraintservice.- Specified by:
 getPeerConstraintin interfacePeerSpecificParserConstraint- Parameters:
 peerConstraintType- Class type of the service.- Returns:
 - Optional of the required service, absent if the service is not available.
 
 - 
addPeerConstraint
Description copied from interface:PeerSpecificParserConstraintProviderRegister newPeerConstraintservice.- Specified by:
 addPeerConstraintin interfacePeerSpecificParserConstraintProvider- Parameters:
 classType- Class type of the service to be added.peerConstraint- Peer constraint service to be added.- Returns:
 - True if service was added, false if not (such service is already registered).
 
 
 -