noblepaul edited a comment on pull request #1684:
URL: https://github.com/apache/lucene-solr/pull/1684#issuecomment-683420028
Here is an example of how to have strong typing for each atribute without
creating so many different interfaces
`public interface PropertyFetcher {`
`PropertyFetcher onNode(String nodeName);`
` PropertyFetcher withCoreCount();`
`PropertyFetcher withSystemProperty(String name);`
`PropertyValues fetchValues();`
` interface PropertyValues {`
`Optional<Integer> coreCount();`
`Optional<String> systemProperty(String propertyName);}}`
`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]