Interface ParameterRegistry
-
public interface ParameterRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ParameterParser>
findParser(int parameterType)
Find a parser for specified parameter type.Optional<ParameterSerializer>
findSerializer(BgpParameters parameter)
Find a serializer for specified parameter.
-
-
-
Method Detail
-
findParser
Optional<ParameterParser> findParser(int parameterType)
Find a parser for specified parameter type.- Parameters:
parameterType
- Parameter type- Returns:
- Parser, if registered
-
findSerializer
Optional<ParameterSerializer> findSerializer(BgpParameters parameter)
Find a serializer for specified parameter.- Parameters:
parameter
- Parameter to serialize- Returns:
- Serializer, if registered
- Throws:
NullPointerException
- if any argument is null
-
-