-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use any object as a choice #44
Labels
Comments
Hey, thanks I like your suggestion! Ideally we implement this through additional overloads so as to not break the existing API. I'd be very grateful for a PR otherwise, I'll try and get the time to work on it (which may be a while) |
I'm glad you like it. I'll try to create a PR when I find time for it. |
Sorry, but I don't know if I have time for this anytime soon. |
Closed in #46. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, thank you for this great library.
However, there's a small issue I have with it: For one of my projects I'm implementing a search for JavaDoc methods and have a class
JavadocMethod
with methods likegetMethodName()
,getClassName()
andgetUrl()
.For searching it would be very convenient to just use the object itself for search, so I can access the url of the found method.
I'm thinking about a generic solution like this:
which allows to use any object by just providing a function which maps this object to a string.
Can you imagine implementing such a feature or accept a pull requests that adds it?
The text was updated successfully, but these errors were encountered: