Пример #1
0
 @Override
 public String getEndpointUrl() {
   return config
       .getEndpoint()
       .map(EndpointDescription::getEndpointUrl)
       .orElse(config.getEndpointUrl().orElse(""));
 }
Пример #2
0
 @Override
 public Optional<EndpointDescription> getEndpoint() {
   return config.getEndpoint();
 }