Sjmarf to Programmer Humor@programming.dev · 9 months agoIs this a Nut?imagemessage-square127fedilinkarrow-up11.3Karrow-down120
arrow-up11.28Karrow-down1imageIs this a Nut?Sjmarf to Programmer Humor@programming.dev · 9 months agomessage-square127fedilink
minus-squaresteeznson@lemmy.worldlinkfedilinkarrow-up8arrow-down3·9 months agoProvided your method specifies a strongly bound type you can ensure that you get your nut. void dischargeNut(T extends Nut) { ... }
Provided your method specifies a strongly bound type you can ensure that you get your nut.
void dischargeNut(T extends Nut) { ... }
strongly bound you say?