#cast a supplier
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
because i have to
it takes in a Supplier<Super>
and i extend Super so i can add some custom things to it
not really
i can give an example but
i have an Supplier<Inventory>
the method takes in an Supplier<Container>
Inventory implements Container
if i use .get and then a supplier than it defeats the whole purppose of the supplier
why do you have a supplier<inventory> at the first place
i guess i can add another parameter
but now i have
which is ugly
thought i could maybe do it cleaner
idk seems dumb passing in the same thing twice
then store it in a variable ?
eh this works fine i guess
or refactor the method, if its the same input anyway ...
shouldnt stop u from only using one in the signature
Can you show the method that's being called?
